#662176#662176

#662176 is a dark, vivid purple. Relative luminance 0.052; OKLCH L 39.3% C 0.148 H 319.4°. Best body text is #FFFFFF at 10.27:1 contrast (WCAG AA passes).

Color values

HEX#662176
RGBrgb(102, 33, 118)
HSLhsl(289, 56%, 30%)
HSVhsv(289, 72%, 46%)
CMYKcmyk(13.6%, 72%, 0%, 53.7%)
CIE-LABlab(27.36, 43.47, -34.31)
CIE-LCHlch(27.36, 55.38, 321.72°)
OKLaboklab(39.27% 0.1123 -0.0961)
OKLCHoklch(39.27% 0.148 319.4)
XYZxyz(9.2929, 5.2209, 17.6543)
Luminance0.0522 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662176 #317621
analogous
#3C2176 #662176 #76215C
triadic
#662176 #766621 #217666
tetradic
#662176 #763C21 #317621 #215C76
square
#662176 #763C21 #317621 #215C76
split-complementary
#662176 #5C7621 #21763C
monochromatic
#150718 #3D1446 #662176 #8F2EA6 #B246CB

Accessibility & contrast

On white

10.27
#662176 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#662176 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #662176
10.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##662176#FFFFFF#000000##FFFFFF
##6621761.0010.272.0410.27
#FFFFFF10.271.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C78
Deuteranopia (green-blind)
#274374
Tritanopia (blue-blind)
#663149
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #662176;
/* rgb */ color: rgb(102, 33, 118);
/* oklch */ color: oklch(39.3% 0.148 319.4);
Tailwind
colors: {
  custom: {
    50: '#95639e',
    500: '#662176',
    950: '#000000',
  },
}
SCSS
$custom: #662176;
$custom-light: #95639e;
$custom-dark: #000000;
JSON
{
  "hex": "#662176",
  "rgb": {
    "r": 102,
    "g": 33,
    "b": 118
  },
  "hsl": {
    "h": 288.706,
    "s": 56.291,
    "l": 29.608
  },
  "oklch": {
    "l": 0.39273,
    "c": 0.14779,
    "h": 319.4
  },
  "luminance": 0.0522
}

Semantic roles & 50–950 ramp

primary
#662176
secondary
#5CA94A
accent
#E04865
background
#F9F6F9
surface
#F2EBF2
border
#CCC6CC
text
#0E060E
muted
#7E7A7E

Preview Lab

Preview with #662176

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

Preview Lab → · Contrast checker → · Palette generator →

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