#662E8A#662E8A

#662E8A is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.3% C 0.150 H 309.4°. Best body text is #FFFFFF at 9.04:1 contrast (WCAG AA passes).

Color values

HEX#662E8A
RGBrgb(102, 46, 138)
HSLhsl(277, 50%, 36%)
HSVhsv(277, 67%, 54%)
CMYKcmyk(26.1%, 66.7%, 0%, 45.9%)
CIE-LABlab(30.91, 41.77, -41.15)
CIE-LCHlch(30.91, 58.64, 315.43°)
OKLaboklab(42.26% 0.0954 -0.1162)
OKLCHoklch(42.26% 0.15 309.4)
XYZxyz(11.0430, 6.6140, 24.7347)
Luminance0.0661 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662E8A #528A2E
analogous
#382E8A #662E8A #8A2E80
triadic
#662E8A #8A662E #2E8A66
tetradic
#662E8A #8A382E #528A2E #2E808A
square
#662E8A #8A382E #528A2E #2E808A
split-complementary
#662E8A #808A2E #2E8A38
monochromatic
#220F2E #441F5C #662E8A #883DB8 #A466CC

Accessibility & contrast

On white

9.04
#662E8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#662E8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #662E8A
9.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##662E8A#FFFFFF#000000##FFFFFF
##662E8A1.009.042.329.04
#FFFFFF9.041.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00468D
Deuteranopia (green-blind)
#204A88
Tritanopia (blue-blind)
#614158
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #662e8a;
/* rgb */ color: rgb(102, 46, 138);
/* oklch */ color: oklch(42.3% 0.150 309.4);
Tailwind
colors: {
  custom: {
    50: '#956bad',
    500: '#662e8a',
    950: '#000000',
  },
}
SCSS
$custom: #662e8a;
$custom-light: #956bad;
$custom-dark: #000000;
JSON
{
  "hex": "#662e8a",
  "rgb": {
    "r": 102,
    "g": 46,
    "b": 138
  },
  "hsl": {
    "h": 276.522,
    "s": 50,
    "l": 36.078
  },
  "oklch": {
    "l": 0.42258,
    "c": 0.1504,
    "h": 309.4
  },
  "luminance": 0.06614
}

Semantic roles & 50–950 ramp

primary
#662E8A
secondary
#81B361
accent
#DA4E85
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E0710
muted
#7E7A7F

Preview Lab

Preview with #662E8A

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

Preview Lab → · Contrast checker → · Palette generator →

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