#66227D#66227D

#66227D is a dark, vivid purple. Relative luminance 0.054; OKLCH L 39.9% C 0.153 H 316.2°. Best body text is #FFFFFF at 10.05:1 contrast (WCAG AA passes).

Color values

HEX#66227D
RGBrgb(102, 34, 125)
HSLhsl(285, 57%, 31%)
HSVhsv(285, 73%, 49%)
CMYKcmyk(18.4%, 72.8%, 0%, 51%)
CIE-LABlab(27.98, 44.51, -37.74)
CIE-LCHlch(27.98, 58.36, 319.71°)
OKLaboklab(39.87% 0.1107 -0.1061)
OKLCHoklch(39.87% 0.153 316.2)
XYZxyz(9.7526, 5.4499, 19.9363)
Luminance0.0545 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#66227D #397D22
analogous
#38227D #66227D #7D2266
triadic
#66227D #7D6622 #227D66
tetradic
#66227D #7D3822 #397D22 #22667D
square
#66227D #7D3822 #397D22 #22667D
split-complementary
#66227D #667D22 #227D38
monochromatic
#17081D #3F154D #66227D #8D2FAD #AD4BCE

Accessibility & contrast

On white

10.05
#66227D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#66227D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #66227D
10.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##66227D#FFFFFF#000000##FFFFFF
##66227D1.0010.052.0910.05
#FFFFFF10.051.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E80
Deuteranopia (green-blind)
#22447B
Tritanopia (blue-blind)
#65344D
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #66227d;
/* rgb */ color: rgb(102, 34, 125);
/* oklch */ color: oklch(39.9% 0.153 316.2);
Tailwind
colors: {
  custom: {
    50: '#9564a3',
    500: '#66227d',
    950: '#000000',
  },
}
SCSS
$custom: #66227d;
$custom-light: #9564a3;
$custom-dark: #000000;
JSON
{
  "hex": "#66227d",
  "rgb": {
    "r": 102,
    "g": 34,
    "b": 125
  },
  "hsl": {
    "h": 284.835,
    "s": 57.233,
    "l": 31.176
  },
  "oklch": {
    "l": 0.3987,
    "c": 0.15333,
    "h": 316.2
  },
  "luminance": 0.0545
}

Semantic roles & 50–950 ramp

primary
#66227D
secondary
#65B04B
accent
#E0476E
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E060F
muted
#7E7A7F

Preview Lab

Preview with #66227D

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

Preview Lab → · Contrast checker → · Palette generator →

#66227D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva