#662172#662172

#662172 is a dark, vivid purple. Relative luminance 0.051; OKLCH L 39.0% C 0.144 H 321.4°. Best body text is #FFFFFF at 10.37:1 contrast (WCAG AA passes).

Color values

HEX#662172
RGBrgb(102, 33, 114)
HSLhsl(291, 55%, 29%)
HSVhsv(291, 71%, 45%)
CMYKcmyk(10.5%, 71.1%, 0%, 55.3%)
CIE-LABlab(27.10, 42.65, -32.17)
CIE-LCHlch(27.10, 53.42, 322.97°)
OKLaboklab(39% 0.1125 -0.0898)
OKLCHoklch(39% 0.144 321.4)
XYZxyz(9.0603, 5.1279, 16.4289)
Luminance0.0513 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662172 #2D7221
analogous
#3E2172 #662172 #722156
triadic
#662172 #726621 #217266
tetradic
#662172 #723E21 #2D7221 #215672
square
#662172 #723E21 #2D7221 #215672
split-complementary
#662172 #567221 #21723E
monochromatic
#150718 #3C1343 #662172 #902FA1 #B544C9

Accessibility & contrast

On white

10.37
#662172 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#662172 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #662172
10.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##662172#FFFFFF#000000##FFFFFF
##6621721.0010.372.0310.37
#FFFFFF10.371.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#063B74
Deuteranopia (green-blind)
#2A4370
Tritanopia (blue-blind)
#672F47
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #662172;
/* rgb */ color: rgb(102, 33, 114);
/* oklch */ color: oklch(39.0% 0.144 321.4);
Tailwind
colors: {
  custom: {
    50: '#94639b',
    500: '#662172',
    950: '#000000',
  },
}
SCSS
$custom: #662172;
$custom-light: #94639b;
$custom-dark: #000000;
JSON
{
  "hex": "#662172",
  "rgb": {
    "r": 102,
    "g": 33,
    "b": 114
  },
  "hsl": {
    "h": 291.111,
    "s": 55.102,
    "l": 28.824
  },
  "oklch": {
    "l": 0.39003,
    "c": 0.14393,
    "h": 321.4
  },
  "luminance": 0.05127
}

Semantic roles & 50–950 ramp

primary
#662172
secondary
#57A549
accent
#DE495F
background
#F9F6F9
surface
#F2EBF2
border
#CCC6CC
text
#0D050E
muted
#7E7A7E

Preview Lab

Preview with #662172

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

Preview Lab → · Contrast checker → · Palette generator →

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