#662989#662989

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

Color values

HEX#662989
RGBrgb(102, 41, 137)
HSLhsl(278, 54%, 35%)
HSVhsv(278, 70%, 54%)
CMYKcmyk(25.5%, 70.1%, 0%, 46.3%)
CIE-LABlab(29.95, 44.00, -42.07)
CIE-LCHlch(29.95, 60.88, 316.28°)
OKLaboklab(41.55% 0.1015 -0.1189)
OKLCHoklch(41.55% 0.156 310.5)
XYZxyz(10.7869, 6.2170, 24.2938)
Luminance0.0622 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662989 #4C8929
analogous
#362989 #662989 #89297C
triadic
#662989 #896629 #298966
tetradic
#662989 #893629 #4C8929 #297C89
square
#662989 #893629 #4C8929 #297C89
split-complementary
#662989 #7C8929 #298936
monochromatic
#200D2B #431B5A #662989 #8937B8 #A65ECF

Accessibility & contrast

On white

9.36
#662989 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #662989
9.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##662989#FFFFFF#000000##FFFFFF
##6629891.009.362.249.36
#FFFFFF9.361.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00448C
Deuteranopia (green-blind)
#1B4887
Tritanopia (blue-blind)
#613D56
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #662989;
/* rgb */ color: rgb(102, 41, 137);
/* oklch */ color: oklch(41.5% 0.156 310.5);
Tailwind
colors: {
  custom: {
    50: '#9568ac',
    500: '#662989',
    950: '#000000',
  },
}
SCSS
$custom: #662989;
$custom-light: #9568ac;
$custom-dark: #000000;
JSON
{
  "hex": "#662989",
  "rgb": {
    "r": 102,
    "g": 41,
    "b": 137
  },
  "hsl": {
    "h": 278.125,
    "s": 53.933,
    "l": 34.902
  },
  "oklch": {
    "l": 0.41548,
    "c": 0.15633,
    "h": 310.5
  },
  "luminance": 0.06217
}

Semantic roles & 50–950 ramp

primary
#662989
secondary
#7BB45A
accent
#DD4A80
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E0610
muted
#7E7A7F

Preview Lab

Preview with #662989

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

Preview Lab → · Contrast checker → · Palette generator →

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