CSS named colour
Rebecca Purple
#663399
A CSS named colour: rebeccapurple is valid anywhere a colour is expected.
- RGB
- rgb(102 51 153)
- HSL
- 270°, 50%, 40%
- OKLCh
- 44.0% 0.160 303.4
Rebecca Purple in every format
Web & CSSThe everyday formats for stylesheets and design tools.
| Hex | #663399 | |
|---|---|---|
| RGB | rgb(102 51 153) | |
| RGB legacy | rgb(102, 51, 153) | |
| RGB percent | rgb(40% 20% 60%) | |
| HSL | hsl(270 50% 40%) | |
| HSL legacy | hsl(270, 50%, 40%) | |
| HSV / HSB | hsv(270, 66.7%, 60%) | |
| HWB | hwb(270 20% 40%) | |
| Nearest name | rebeccapurple | |
| CMYK | cmyk(33.3%, 66.7%, 0%, 40%)Naive conversion. Real print work needs an ICC profile. |
Perceptual & wide gamutModern CSS colour spaces for uniform scales and P3 displays.
| OKLCh | oklch(44.027% 0.1603 303.373)Modern CSS colour space for even palettes — better than HSL when building scales. | |
|---|---|---|
| OKLab | oklab(44.027% 0.08818 -0.13386) | |
| CIE LCh | lch(32.393% 61.244 308.857) | |
| CIE Lab | lab(32.393% 38.423 -47.691) | |
| Display P3 | color(display-p3 0.3737 0.2103 0.5791) | |
| Rec. 2020 | color(rec2020 0.3046 0.1682 0.5309) | |
| srgb-linear | color(srgb-linear 0.1329 0.0331 0.3185)Light-linear sRGB — the same numbers a shader wants for maths. | |
| CIE XYZ (D65) | color(xyz-d65 0.1241 0.0749 0.3093) |
ShadersGLSL, HLSL and WGSL vectors in both encoded and linear form.
| GLSL vec3 — sRGB | vec3(0.4, 0.2, 0.6)Encoded values. Use when writing straight to the framebuffer. | |
|---|---|---|
| GLSL vec3 — linear | vec3(0.133, 0.033, 0.319)Light-linear values. Use for lighting, blending and mixing. | |
| GLSL vec4 — sRGB | vec4(0.4, 0.2, 0.6, 1.0) | |
| GLSL vec4 — linear | vec4(0.133, 0.033, 0.319, 1.0) | |
| GLSL ivec3 | ivec3(102, 51, 153) | |
| HLSL float3 — sRGB | float3(0.4, 0.2, 0.6) | |
| HLSL float3 — linear | float3(0.133, 0.033, 0.319) | |
| HLSL float4 — sRGB | float4(0.4, 0.2, 0.6, 1.0) | |
| HLSL half4 — sRGB | half4(0.4, 0.2, 0.6, 1.0) | |
| WGSL vec3f — sRGB | vec3f(0.4, 0.2, 0.6) | |
| WGSL vec4f — sRGB | vec4f(0.4, 0.2, 0.6, 1.0) | |
| WGSL vec3<f32> — linear | vec3<f32>(0.133, 0.033, 0.319) |
Engines & appsConstructors for Unity, Unreal, Godot, Flutter, SwiftUI and Android.
| Unity Color | new Color(0.4f, 0.2f, 0.6f, 1.0f)Color for everyday scripting (0–1). Color32 when you need whole numbers from 0 to 255. | |
|---|---|---|
| Unity Color32 | new Color32(102, 51, 153, 255) | |
| Unreal FLinearColor | FLinearColor(0.1329f, 0.0331f, 0.3185f, 1.0f)FLinearColor for materials and lighting. FColor when you need whole numbers from 0 to 255. | |
| Unreal FColor | FColor(102, 51, 153, 255)Whole numbers from 0 to 255 — use when an API asks for FColor, not FLinearColor. | |
| Godot Color | Color(0.4, 0.2, 0.6, 1) | |
| Flutter Color | Color(0xFF663399)Packed ARGB, so alpha comes first. | |
| Android Color | Color.rgb(102, 51, 153) | |
| SwiftUI Color | Color(red: 0.4, green: 0.2, blue: 0.6) | |
| UIKit UIColor | UIColor(red: 0.4, green: 0.2, blue: 0.6, alpha: 1) |
Raw valuesPacked integers and plain arrays.
| 0x hex | 0x663399 | |
|---|---|---|
| 0x hex (ARGB) | 0xFF663399 | |
| Array 0–1 | [0.4, 0.2, 0.6] | |
| Array 0–255 | [102, 51, 153] | |
| Decimal integer | 6697881 |
Contrast and accessibility
WCAG 2 ratios are what audits and legislation reference. APCA is shown alongside because WCAG 2 is known to misjudge mid-tone backgrounds, and it is the basis of the WCAG 3 draft.
| Pairing | WCAG 2 ratio | Level | APCA | Suitable for |
|---|---|---|---|---|
| Rebecca Purple on white | 8.41:1 | AAA | Lc 88 | Body text, 18px and up |
| Rebecca Purple on black | 2.50:1 | Fail | Lc 14 | Not usable for text |
Rebecca Purple text on a white background
Rebecca Purple text on a black background
White text on Rebecca Purple
Black text on Rebecca Purple
Tonal scale
Hue held fixed while lightness walks OKLCh, ready to use as a design system ramp.
- 50#fdf2ff
- 100#f5e5ff
- 200#e8cfff
- 300#d8b0ff
- 400#be8ff8
- 500#a06fda
- 600#8556bb
- 700#6d409d
- 800#582e83
- 900#46206c
- 950#2b0948
Tints and shades
Mixed perceptually toward white and black, so the steps feel evenly spaced.
- Tint 1#7d56ab
- Tint 2#9678bd
- Tint 3#af99ce
- Tint 4#c9badf
- Tint 5#e4dcef
- Shade 1#4e2677
- Shade 2#381957
- Shade 3#230d38
- Shade 4#0f041c
- Shade 5#020105
Colours that work with Rebecca Purple
Complementary, triadic and analogous partners, rotated in OKLCh so they keep the same apparent brightness.
- #455d00
- #7f4000
- #006358
- #3a44a9
- #832477
Closest CSS names
rebeccapurpleexact matchdarkslateblueΔEok 0.061purpleΔEok 0.085darkmagentaΔEok 0.091indigoΔEok 0.103slateblueΔEok 0.116