#662170#662170

#662170 is a dark, vivid purple. Relative luminance 0.051; OKLCH L 38.9% C 0.142 H 322.4°. Best body text is #FFFFFF at 10.41:1 contrast (WCAG AA passes).

Color values

HEX#662170
RGBrgb(102, 33, 112)
HSLhsl(292, 54%, 28%)
HSVhsv(292, 71%, 44%)
CMYKcmyk(8.9%, 70.5%, 0%, 56.1%)
CIE-LABlab(26.97, 42.24, -31.09)
CIE-LCHlch(26.97, 52.45, 323.64°)
OKLaboklab(38.87% 0.1125 -0.0867)
OKLCHoklch(38.87% 0.142 322.4)
XYZxyz(8.9477, 5.0828, 15.8359)
Luminance0.0508 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662170 #2B7021
analogous
#3E2170 #662170 #702152
triadic
#662170 #706621 #217066
tetradic
#662170 #703E21 #2B7021 #215270
square
#662170 #703E21 #2B7021 #215270
split-complementary
#662170 #527021 #21703E
monochromatic
#160718 #3B1341 #662170 #912F9F #B744C8

Accessibility & contrast

On white

10.41
#662170 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#662170 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #662170
10.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##662170#FFFFFF#000000##FFFFFF
##6621701.0010.412.0210.41
#FFFFFF10.411.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A3B72
Deuteranopia (green-blind)
#2C426E
Tritanopia (blue-blind)
#672E46
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #662170;
/* rgb */ color: rgb(102, 33, 112);
/* oklch */ color: oklch(38.9% 0.142 322.4);
Tailwind
colors: {
  custom: {
    50: '#946399',
    500: '#662170',
    950: '#000000',
  },
}
SCSS
$custom: #662170;
$custom-light: #946399;
$custom-dark: #000000;
JSON
{
  "hex": "#662170",
  "rgb": {
    "r": 102,
    "g": 33,
    "b": 112
  },
  "hsl": {
    "h": 292.405,
    "s": 54.483,
    "l": 28.431
  },
  "oklch": {
    "l": 0.38872,
    "c": 0.14202,
    "h": 322.4
  },
  "luminance": 0.05082
}

Semantic roles & 50–950 ramp

primary
#662170
secondary
#55A449
accent
#DE4A5D
background
#F9F6F9
surface
#F2EBF2
border
#CCC6CC
text
#0D050E
muted
#7E7A7E

Preview Lab

Preview with #662170

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

Preview Lab → · Contrast checker → · Palette generator →

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