#662189#662189

#662189 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.6% C 0.166 H 311.4°. Best body text is #FFFFFF at 9.80:1 contrast (WCAG AA passes).

Color values

HEX#662189
RGBrgb(102, 33, 137)
HSLhsl(280, 61%, 33%)
HSVhsv(280, 76%, 54%)
CMYKcmyk(25.5%, 75.9%, 0%, 46.3%)
CIE-LABlab(28.69, 47.56, -44.11)
CIE-LCHlch(28.69, 64.87, 317.16°)
OKLaboklab(40.65% 0.1101 -0.1248)
OKLCHoklch(40.65% 0.166 311.4)
XYZxyz(10.5379, 5.7189, 24.2108)
Luminance0.0572 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662189 #448921
analogous
#322189 #662189 #892178
triadic
#662189 #896621 #218966
tetradic
#662189 #893221 #448921 #217889
square
#662189 #893221 #448921 #217889
split-complementary
#662189 #788921 #218932
monochromatic
#1D0926 #411558 #662189 #8B2DBA #A850D5

Accessibility & contrast

On white

9.80
#662189 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#662189 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #662189
9.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##662189#FFFFFF#000000##FFFFFF
##6621891.009.802.149.80
#FFFFFF9.801.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00408C
Deuteranopia (green-blind)
#0F4587
Tritanopia (blue-blind)
#623953
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #662189;
/* rgb */ color: rgb(102, 33, 137);
/* oklch */ color: oklch(40.6% 0.166 311.4);
Tailwind
colors: {
  custom: {
    50: '#9664ac',
    500: '#662189',
    950: '#000000',
  },
}
SCSS
$custom: #662189;
$custom-light: #9664ac;
$custom-dark: #000000;
JSON
{
  "hex": "#662189",
  "rgb": {
    "r": 102,
    "g": 33,
    "b": 137
  },
  "hsl": {
    "h": 279.808,
    "s": 61.176,
    "l": 33.333
  },
  "oklch": {
    "l": 0.4065,
    "c": 0.16647,
    "h": 311.4
  },
  "luminance": 0.05719
}

Semantic roles & 50–950 ramp

primary
#662189
secondary
#72B84E
accent
#E4447A
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E0610
muted
#7E7A7F

Preview Lab

Preview with #662189

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

Preview Lab → · Contrast checker → · Palette generator →

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