#662988#662988

#662988 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.5% C 0.155 H 310.9°. Best body text is #FFFFFF at 9.39:1 contrast (WCAG AA passes).

Color values

HEX#662988
RGBrgb(102, 41, 136)
HSLhsl(279, 54%, 35%)
HSVhsv(279, 70%, 53%)
CMYKcmyk(25%, 69.9%, 0%, 46.7%)
CIE-LABlab(29.88, 43.77, -41.57)
CIE-LCHlch(29.88, 60.36, 316.48°)
OKLaboklab(41.48% 0.1016 -0.1174)
OKLCHoklch(41.48% 0.155 310.9)
XYZxyz(10.7155, 6.1885, 23.9178)
Luminance0.0619 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662988 #4B8829
analogous
#362988 #662988 #88297B
triadic
#662988 #886629 #298866
tetradic
#662988 #883629 #4B8829 #297B88
square
#662988 #883629 #4B8829 #297B88
split-complementary
#662988 #7B8829 #298836
monochromatic
#1F0D2A #431B59 #662988 #8937B7 #A65DCE

Accessibility & contrast

On white

9.39
#662988 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#662988 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #662988
9.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##662988#FFFFFF#000000##FFFFFF
##6629881.009.392.249.39
#FFFFFF9.391.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00448B
Deuteranopia (green-blind)
#1C4786
Tritanopia (blue-blind)
#623D55
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #662988;
/* rgb */ color: rgb(102, 41, 136);
/* oklch */ color: oklch(41.5% 0.155 310.9);
Tailwind
colors: {
  custom: {
    50: '#9568ab',
    500: '#662988',
    950: '#000000',
  },
}
SCSS
$custom: #662988;
$custom-light: #9568ab;
$custom-dark: #000000;
JSON
{
  "hex": "#662988",
  "rgb": {
    "r": 102,
    "g": 41,
    "b": 136
  },
  "hsl": {
    "h": 278.526,
    "s": 53.672,
    "l": 34.706
  },
  "oklch": {
    "l": 0.41475,
    "c": 0.15527,
    "h": 310.9
  },
  "luminance": 0.06188
}

Semantic roles & 50–950 ramp

primary
#662988
secondary
#7AB459
accent
#DD4B7F
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E0610
muted
#7E7A7F

Preview Lab

Preview with #662988

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

Preview Lab → · Contrast checker → · Palette generator →

#662988 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva