#662F84#662F84

#662F84 is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.0% C 0.142 H 311.6°. Best body text is #FFFFFF at 9.11:1 contrast (WCAG AA passes).

Color values

HEX#662F84
RGBrgb(102, 47, 132)
HSLhsl(279, 47%, 35%)
HSVhsv(279, 64%, 52%)
CMYKcmyk(22.7%, 64.4%, 0%, 48.2%)
CIE-LABlab(30.70, 39.84, -37.77)
CIE-LCHlch(30.70, 54.90, 316.53°)
OKLaboklab(41.98% 0.0945 -0.1063)
OKLCHoklch(41.98% 0.142 311.6)
XYZxyz(10.6601, 6.5240, 22.5230)
Luminance0.0652 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662F84 #4D842F
analogous
#3C2F84 #662F84 #842F77
triadic
#662F84 #84662F #2F8466
tetradic
#662F84 #843C2F #4D842F #2F7784
square
#662F84 #843C2F #4D842F #2F7784
split-complementary
#662F84 #77842F #2F843C
monochromatic
#200F2A #431F57 #662F84 #893FB1 #A565C8

Accessibility & contrast

On white

9.11
#662F84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#662F84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #662F84
9.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##662F84#FFFFFF#000000##FFFFFF
##662F841.009.112.309.11
#FFFFFF9.111.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#094687
Deuteranopia (green-blind)
#274982
Tritanopia (blue-blind)
#623F55
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #662f84;
/* rgb */ color: rgb(102, 47, 132);
/* oklch */ color: oklch(42.0% 0.142 311.6);
Tailwind
colors: {
  custom: {
    50: '#946ba8',
    500: '#662f84',
    950: '#000000',
  },
}
SCSS
$custom: #662f84;
$custom-light: #946ba8;
$custom-dark: #000000;
JSON
{
  "hex": "#662f84",
  "rgb": {
    "r": 102,
    "g": 47,
    "b": 132
  },
  "hsl": {
    "h": 278.824,
    "s": 47.486,
    "l": 35.098
  },
  "oklch": {
    "l": 0.41975,
    "c": 0.14222,
    "h": 311.6
  },
  "luminance": 0.06524
}

Semantic roles & 50–950 ramp

primary
#662F84
secondary
#7CAF60
accent
#D75180
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0D0710
muted
#7E7A7F

Preview Lab

Preview with #662F84

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

Preview Lab → · Contrast checker → · Palette generator →

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