#662E91#662E91

#662E91 is a dark, vivid violet. Relative luminance 0.068; OKLCH L 42.8% C 0.158 H 306.8°. Best body text is #FFFFFF at 8.88:1 contrast (WCAG AA passes).

Color values

HEX#662E91
RGBrgb(102, 46, 145)
HSLhsl(274, 52%, 37%)
HSVhsv(274, 68%, 57%)
CMYKcmyk(29.7%, 68.3%, 0%, 43.1%)
CIE-LABlab(31.40, 43.46, -44.68)
CIE-LCHlch(31.40, 62.33, 314.21°)
OKLaboklab(42.77% 0.0949 -0.1266)
OKLCHoklch(42.77% 0.158 306.8)
XYZxyz(11.5662, 6.8232, 27.4903)
Luminance0.0682 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662E91 #59912E
analogous
#342E91 #662E91 #912E8B
triadic
#662E91 #91662E #2E9166
tetradic
#662E91 #91342E #59912E #2E8B91
square
#662E91 #91342E #59912E #2E8B91
split-complementary
#662E91 #8B912E #2E9134
monochromatic
#251134 #451F63 #662E91 #873DBF #A36AD0

Accessibility & contrast

On white

8.88
#662E91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#662E91 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #662E91
8.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##662E91#FFFFFF#000000##FFFFFF
##662E911.008.882.368.88
#FFFFFF8.881.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004894
Deuteranopia (green-blind)
#164A8F
Tritanopia (blue-blind)
#5F435B
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #662e91;
/* rgb */ color: rgb(102, 46, 145);
/* oklch */ color: oklch(42.8% 0.158 306.8);
Tailwind
colors: {
  custom: {
    50: '#956bb2',
    500: '#662e91',
    950: '#000000',
  },
}
SCSS
$custom: #662e91;
$custom-light: #956bb2;
$custom-dark: #000000;
JSON
{
  "hex": "#662e91",
  "rgb": {
    "r": 102,
    "g": 46,
    "b": 145
  },
  "hsl": {
    "h": 273.939,
    "s": 51.832,
    "l": 37.451
  },
  "oklch": {
    "l": 0.42766,
    "c": 0.15819,
    "h": 306.8
  },
  "luminance": 0.06823
}

Semantic roles & 50–950 ramp

primary
#662E91
secondary
#88B764
accent
#DB4D8B
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0711
muted
#7E7A80

Preview Lab

Preview with #662E91

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

Preview Lab → · Contrast checker → · Palette generator →

#662E91 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva