#662AB0#662AB0

#662AB0 is a dark, vivid violet. Relative luminance 0.076; OKLCH L 44.8% C 0.197 H 298.3°. Best body text is #FFFFFF at 8.32:1 contrast (WCAG AA passes).

Color values

HEX#662AB0
RGBrgb(102, 42, 176)
HSLhsl(267, 61%, 43%)
HSVhsv(267, 76%, 69%)
CMYKcmyk(42%, 76.1%, 0%, 31%)
CIE-LABlab(33.17, 53.02, -60.57)
CIE-LCHlch(33.17, 80.50, 311.19°)
OKLaboklab(44.78% 0.0932 -0.1733)
OKLCHoklch(44.78% 0.197 298.3)
XYZxyz(14.1419, 7.6151, 41.7907)
Luminance0.0761 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662AB0 #74B02A
analogous
#2A31B0 #662AB0 #A92AB0
triadic
#662AB0 #B0662A #2AB066
tetradic
#662AB0 #B02A31 #74B02A #2AB0A9
square
#662AB0 #B02A31 #74B02A #2AB0A9
split-complementary
#662AB0 #B0A92A #31B02A
monochromatic
#2D124D #491E7F #662AB0 #8445D3 #A576DE

Accessibility & contrast

On white

8.32
#662AB0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#662AB0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #662AB0
8.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##662AB0#FFFFFF#000000##FFFFFF
##662AB01.008.322.528.32
#FFFFFF8.321.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB4
Deuteranopia (green-blind)
#004DAD
Tritanopia (blue-blind)
#534E6C
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #662ab0;
/* rgb */ color: rgb(102, 42, 176);
/* oklch */ color: oklch(44.8% 0.197 298.3);
Tailwind
colors: {
  custom: {
    50: '#996ac9',
    500: '#662ab0',
    950: '#000000',
  },
}
SCSS
$custom: #662ab0;
$custom-light: #996ac9;
$custom-dark: #000000;
JSON
{
  "hex": "#662ab0",
  "rgb": {
    "r": 102,
    "g": 42,
    "b": 176
  },
  "hsl": {
    "h": 266.866,
    "s": 61.468,
    "l": 42.745
  },
  "oklch": {
    "l": 0.44781,
    "c": 0.19674,
    "h": 298.3
  },
  "luminance": 0.07615
}

Semantic roles & 50–950 ramp

primary
#662AB0
secondary
#9FC670
accent
#E5439C
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0F0713
muted
#7E7A82

Preview Lab

Preview with #662AB0

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

Preview Lab → · Contrast checker → · Palette generator →

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