#662A8A#662A8A

#662A8A is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.7% C 0.156 H 310.0°. Best body text is #FFFFFF at 9.28:1 contrast (WCAG AA passes).

Color values

HEX#662A8A
RGBrgb(102, 42, 138)
HSLhsl(278, 53%, 35%)
HSVhsv(278, 70%, 54%)
CMYKcmyk(26.1%, 69.6%, 0%, 45.9%)
CIE-LABlab(30.20, 43.76, -42.30)
CIE-LCHlch(30.20, 60.86, 315.97°)
OKLaboklab(41.74% 0.1002 -0.1196)
OKLCHoklch(41.74% 0.156 310)
XYZxyz(10.8940, 6.3159, 24.6850)
Luminance0.0632 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662A8A #4E8A2A
analogous
#362A8A #662A8A #8A2A7E
triadic
#662A8A #8A662A #2A8A66
tetradic
#662A8A #8A362A #4E8A2A #2A7E8A
square
#662A8A #8A362A #4E8A2A #2A7E8A
split-complementary
#662A8A #7E8A2A #2A8A36
monochromatic
#210D2C #431C5B #662A8A #8938B9 #A560CF

Accessibility & contrast

On white

9.28
#662A8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#662A8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #662A8A
9.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##662A8A#FFFFFF#000000##FFFFFF
##662A8A1.009.282.269.28
#FFFFFF9.281.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00448D
Deuteranopia (green-blind)
#1B4888
Tritanopia (blue-blind)
#613E56
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #662a8a;
/* rgb */ color: rgb(102, 42, 138);
/* oklch */ color: oklch(41.7% 0.156 310.0);
Tailwind
colors: {
  custom: {
    50: '#9568ad',
    500: '#662a8a',
    950: '#000000',
  },
}
SCSS
$custom: #662a8a;
$custom-light: #9568ad;
$custom-dark: #000000;
JSON
{
  "hex": "#662a8a",
  "rgb": {
    "r": 102,
    "g": 42,
    "b": 138
  },
  "hsl": {
    "h": 277.5,
    "s": 53.333,
    "l": 35.294
  },
  "oklch": {
    "l": 0.41744,
    "c": 0.15604,
    "h": 310
  },
  "luminance": 0.06316
}

Semantic roles & 50–950 ramp

primary
#662A8A
secondary
#7DB45B
accent
#DD4B82
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E0610
muted
#7E7A7F

Preview Lab

Preview with #662A8A

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

Preview Lab → · Contrast checker → · Palette generator →

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