#662399#662399

#662399 is a dark, vivid violet. Relative luminance 0.063; OKLCH L 42.1% C 0.180 H 305.6°. Best body text is #FFFFFF at 9.27:1 contrast (WCAG AA passes).

Color values

HEX#662399
RGBrgb(102, 35, 153)
HSLhsl(274, 63%, 37%)
HSVhsv(274, 77%, 60%)
CMYKcmyk(33.3%, 77.1%, 0%, 40%)
CIE-LABlab(30.22, 50.40, -51.49)
CIE-LCHlch(30.22, 72.05, 314.39°)
OKLaboklab(42.12% 0.105 -0.1465)
OKLCHoklch(42.12% 0.18 305.6)
XYZxyz(11.8290, 6.3268, 30.7288)
Luminance0.0633 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662399 #569923
analogous
#2B2399 #662399 #992391
triadic
#662399 #996623 #239966
tetradic
#662399 #992B23 #569923 #239199
square
#662399 #992B23 #569923 #239199
split-complementary
#662399 #919923 #23992B
monochromatic
#240C35 #451867 #662399 #872ECB #A45DDA

Accessibility & contrast

On white

9.27
#662399 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#662399 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #662399
9.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##662399#FFFFFF#000000##FFFFFF
##6623991.009.272.279.27
#FFFFFF9.271.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00459C
Deuteranopia (green-blind)
#004797
Tritanopia (blue-blind)
#5D415D
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #662399;
/* rgb */ color: rgb(102, 35, 153);
/* oklch */ color: oklch(42.1% 0.180 305.6);
Tailwind
colors: {
  custom: {
    50: '#9765b8',
    500: '#662399',
    950: '#000000',
  },
}
SCSS
$custom: #662399;
$custom-light: #9765b8;
$custom-dark: #000000;
JSON
{
  "hex": "#662399",
  "rgb": {
    "r": 102,
    "g": 35,
    "b": 153
  },
  "hsl": {
    "h": 274.068,
    "s": 62.766,
    "l": 36.863
  },
  "oklch": {
    "l": 0.4212,
    "c": 0.18029,
    "h": 305.6
  },
  "luminance": 0.06327
}

Semantic roles & 50–950 ramp

primary
#662399
secondary
#85BE59
accent
#E64289
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0611
muted
#7E7A80

Preview Lab

Preview with #662399

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#662399 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva