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

Open in the picker

Rebecca Purple in every format

Web & CSSThe everyday formats for stylesheets and design tools.

Hex#663399
RGBrgb(102 51 153)
RGB legacyrgb(102, 51, 153)
RGB percentrgb(40% 20% 60%)
HSLhsl(270 50% 40%)
HSL legacyhsl(270, 50%, 40%)
HSV / HSBhsv(270, 66.7%, 60%)
HWBhwb(270 20% 40%)
Nearest namerebeccapurple
CMYKcmyk(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.

OKLChoklch(44.027% 0.1603 303.373)Modern CSS colour space for even palettes — better than HSL when building scales.
OKLaboklab(44.027% 0.08818 -0.13386)
CIE LChlch(32.393% 61.244 308.857)
CIE Lablab(32.393% 38.423 -47.691)
Display P3color(display-p3 0.3737 0.2103 0.5791)
Rec. 2020color(rec2020 0.3046 0.1682 0.5309)
srgb-linearcolor(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 — sRGBvec3(0.4, 0.2, 0.6)Encoded values. Use when writing straight to the framebuffer.
GLSL vec3 — linearvec3(0.133, 0.033, 0.319)Light-linear values. Use for lighting, blending and mixing.
GLSL vec4 — sRGBvec4(0.4, 0.2, 0.6, 1.0)
GLSL vec4 — linearvec4(0.133, 0.033, 0.319, 1.0)
GLSL ivec3ivec3(102, 51, 153)
HLSL float3 — sRGBfloat3(0.4, 0.2, 0.6)
HLSL float3 — linearfloat3(0.133, 0.033, 0.319)
HLSL float4 — sRGBfloat4(0.4, 0.2, 0.6, 1.0)
HLSL half4 — sRGBhalf4(0.4, 0.2, 0.6, 1.0)
WGSL vec3f — sRGBvec3f(0.4, 0.2, 0.6)
WGSL vec4f — sRGBvec4f(0.4, 0.2, 0.6, 1.0)
WGSL vec3<f32> — linearvec3<f32>(0.133, 0.033, 0.319)

Engines & appsConstructors for Unity, Unreal, Godot, Flutter, SwiftUI and Android.

Unity Colornew 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 Color32new Color32(102, 51, 153, 255)
Unreal FLinearColorFLinearColor(0.1329f, 0.0331f, 0.3185f, 1.0f)FLinearColor for materials and lighting. FColor when you need whole numbers from 0 to 255.
Unreal FColorFColor(102, 51, 153, 255)Whole numbers from 0 to 255 — use when an API asks for FColor, not FLinearColor.
Godot ColorColor(0.4, 0.2, 0.6, 1)
Flutter ColorColor(0xFF663399)Packed ARGB, so alpha comes first.
Android ColorColor.rgb(102, 51, 153)
SwiftUI ColorColor(red: 0.4, green: 0.2, blue: 0.6)
UIKit UIColorUIColor(red: 0.4, green: 0.2, blue: 0.6, alpha: 1)

Raw valuesPacked integers and plain arrays.

0x hex0x663399
0x hex (ARGB)0xFF663399
Array 0–1[0.4, 0.2, 0.6]
Array 0–255[102, 51, 153]
Decimal integer6697881

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.

PairingWCAG 2 ratioLevelAPCASuitable for
Rebecca Purple on white8.41:1AAALc 88Body text, 18px and up
Rebecca Purple on black2.50:1FailLc 14Not 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 match
  • darkslateblueΔEok 0.061
  • purpleΔEok 0.085
  • darkmagentaΔEok 0.091
  • indigoΔEok 0.103
  • slateblueΔEok 0.116