#662F8A#662F8A

#662F8A is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.4% C 0.149 H 309.2°. Best body text is #FFFFFF at 8.98:1 contrast (WCAG AA passes).

Color values

HEX#662F8A
RGBrgb(102, 47, 138)
HSLhsl(276, 49%, 36%)
HSVhsv(276, 66%, 54%)
CMYKcmyk(26.1%, 65.9%, 0%, 45.9%)
CIE-LABlab(31.10, 41.26, -40.85)
CIE-LCHlch(31.10, 58.07, 315.29°)
OKLaboklab(42.39% 0.0942 -0.1153)
OKLCHoklch(42.39% 0.149 309.2)
XYZxyz(11.0825, 6.6930, 24.7479)
Luminance0.0669 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662F8A #538A2F
analogous
#392F8A #662F8A #8A2F81
triadic
#662F8A #8A662F #2F8A66
tetradic
#662F8A #8A392F #538A2F #2F818A
square
#662F8A #8A392F #538A2F #2F818A
split-complementary
#662F8A #818A2F #2F8A39
monochromatic
#23102F #441F5C #662F8A #883FB8 #A468CC

Accessibility & contrast

On white

8.98
#662F8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#662F8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #662F8A
8.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##662F8A#FFFFFF#000000##FFFFFF
##662F8A1.008.982.348.98
#FFFFFF8.981.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.981.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #662f8a;
/* rgb */ color: rgb(102, 47, 138);
/* oklch */ color: oklch(42.4% 0.149 309.2);
Tailwind
colors: {
  custom: {
    50: '#956bad',
    500: '#662f8a',
    950: '#000000',
  },
}
SCSS
$custom: #662f8a;
$custom-light: #956bad;
$custom-dark: #000000;
JSON
{
  "hex": "#662f8a",
  "rgb": {
    "r": 102,
    "g": 47,
    "b": 138
  },
  "hsl": {
    "h": 276.264,
    "s": 49.189,
    "l": 36.275
  },
  "oklch": {
    "l": 0.42392,
    "c": 0.14893,
    "h": 309.2
  },
  "luminance": 0.06693
}

Semantic roles & 50–950 ramp

primary
#662F8A
secondary
#82B362
accent
#D94F86
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E0710
muted
#7E7A7F

Preview Lab

Preview with #662F8A

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

Preview Lab → · Contrast checker → · Palette generator →

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