#662489#662489

#662489 is a dark, vivid violet. Relative luminance 0.059; OKLCH L 41.0% C 0.163 H 311.1°. Best body text is #FFFFFF at 9.64:1 contrast (WCAG AA passes).

Color values

HEX#662489
RGBrgb(102, 36, 137)
HSLhsl(279, 58%, 34%)
HSVhsv(279, 74%, 54%)
CMYKcmyk(25.5%, 73.7%, 0%, 46.3%)
CIE-LABlab(29.14, 46.29, -43.39)
CIE-LCHlch(29.14, 63.44, 316.85°)
OKLaboklab(40.97% 0.107 -0.1227)
OKLCHoklch(40.97% 0.163 311.1)
XYZxyz(10.6249, 5.8929, 24.2398)
Luminance0.0589 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662489 #478924
analogous
#342489 #662489 #89247A
triadic
#662489 #896624 #248966
tetradic
#662489 #893424 #478924 #247A89
square
#662489 #893424 #478924 #247A89
split-complementary
#662489 #7A8924 #248934
monochromatic
#1E0B28 #421759 #662489 #8A31B9 #A755D2

Accessibility & contrast

On white

9.64
#662489 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#662489 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #662489
9.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##662489#FFFFFF#000000##FFFFFF
##6624891.009.642.189.64
#FFFFFF9.641.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00428C
Deuteranopia (green-blind)
#144687
Tritanopia (blue-blind)
#613A54
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #662489;
/* rgb */ color: rgb(102, 36, 137);
/* oklch */ color: oklch(41.0% 0.163 311.1);
Tailwind
colors: {
  custom: {
    50: '#9565ac',
    500: '#662489',
    950: '#000000',
  },
}
SCSS
$custom: #662489;
$custom-light: #9565ac;
$custom-dark: #000000;
JSON
{
  "hex": "#662489",
  "rgb": {
    "r": 102,
    "g": 36,
    "b": 137
  },
  "hsl": {
    "h": 279.208,
    "s": 58.382,
    "l": 33.922
  },
  "oklch": {
    "l": 0.40968,
    "c": 0.16284,
    "h": 311.1
  },
  "luminance": 0.05893
}

Semantic roles & 50–950 ramp

primary
#662489
secondary
#75B752
accent
#E2467C
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E0610
muted
#7E7A7F

Preview Lab

Preview with #662489

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

Preview Lab → · Contrast checker → · Palette generator →

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