#662497#662497

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

Color values

HEX#662497
RGBrgb(102, 36, 151)
HSLhsl(274, 61%, 37%)
HSVhsv(274, 76%, 59%)
CMYKcmyk(32.5%, 76.2%, 0%, 40.8%)
CIE-LABlab(30.21, 49.52, -50.29)
CIE-LCHlch(30.21, 70.58, 314.55°)
OKLaboklab(42.06% 0.1045 -0.143)
OKLCHoklch(42.06% 0.177 306.2)
XYZxyz(11.6951, 6.3210, 29.8761)
Luminance0.0632 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662497 #559724
analogous
#2D2497 #662497 #97248F
triadic
#662497 #976624 #249766
tetradic
#662497 #972D24 #559724 #248F97
square
#662497 #972D24 #559724 #248F97
split-complementary
#662497 #8F9724 #24972D
monochromatic
#230C34 #451866 #662497 #8730C8 #A45DD8

Accessibility & contrast

On white

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

On black

2.26
#662497 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##662497#FFFFFF#000000##FFFFFF
##6624971.009.272.269.27
#FFFFFF9.271.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00459A
Deuteranopia (green-blind)
#004795
Tritanopia (blue-blind)
#5D405C
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #662497;
/* rgb */ color: rgb(102, 36, 151);
/* oklch */ color: oklch(42.1% 0.177 306.2);
Tailwind
colors: {
  custom: {
    50: '#9666b6',
    500: '#662497',
    950: '#000000',
  },
}
SCSS
$custom: #662497;
$custom-light: #9666b6;
$custom-dark: #000000;
JSON
{
  "hex": "#662497",
  "rgb": {
    "r": 102,
    "g": 36,
    "b": 151
  },
  "hsl": {
    "h": 274.435,
    "s": 61.497,
    "l": 36.667
  },
  "oklch": {
    "l": 0.4206,
    "c": 0.17715,
    "h": 306.2
  },
  "luminance": 0.06321
}

Semantic roles & 50–950 ramp

primary
#662497
secondary
#84BD5A
accent
#E54388
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0611
muted
#7E7A80

Preview Lab

Preview with #662497

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

Preview Lab → · Contrast checker → · Palette generator →

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