#42216D#42216D

#42216D is a dark, vivid violet. Relative luminance 0.034; OKLCH L 33.7% C 0.126 H 299.5°. Best body text is #FFFFFF at 12.57:1 contrast (WCAG AA passes).

Color values

HEX#42216D
RGBrgb(66, 33, 109)
HSLhsl(266, 54%, 28%)
HSVhsv(266, 70%, 43%)
CMYKcmyk(39.4%, 69.7%, 0%, 57.3%)
CIE-LABlab(21.39, 32.80, -38.40)
CIE-LCHlch(21.39, 50.50, 310.50°)
OKLaboklab(33.67% 0.0619 -0.1094)
OKLCHoklch(33.67% 0.126 299.5)
XYZxyz(5.5503, 3.3500, 14.8192)
Luminance0.0335 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42216D #4C6D21
analogous
#21266D #42216D #68216D
triadic
#42216D #6D4221 #216D42
tetradic
#42216D #6D2126 #4C6D21 #216D68
square
#42216D #6D2126 #4C6D21 #216D68
split-complementary
#42216D #6D6821 #266D21
monochromatic
#0E0717 #26133E #42216D #5E2F9C #7C42C6

Accessibility & contrast

On white

12.57
#42216D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#42216D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42216D
12.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42216D#FFFFFF#000000##FFFFFF
##42216D1.0012.571.6712.57
#FFFFFF12.571.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00336F
Deuteranopia (green-blind)
#00336B
Tritanopia (blue-blind)
#383244
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #42216d;
/* rgb */ color: rgb(66, 33, 109);
/* oklch */ color: oklch(33.7% 0.126 299.5);
Tailwind
colors: {
  custom: {
    50: '#7a5f97',
    500: '#42216d',
    950: '#000000',
  },
}
SCSS
$custom: #42216d;
$custom-light: #7a5f97;
$custom-dark: #000000;
JSON
{
  "hex": "#42216d",
  "rgb": {
    "r": 66,
    "g": 33,
    "b": 109
  },
  "hsl": {
    "h": 266.053,
    "s": 53.521,
    "l": 27.843
  },
  "oklch": {
    "l": 0.33669,
    "c": 0.12568,
    "h": 299.5
  },
  "luminance": 0.0335
}

Semantic roles & 50–950 ramp

primary
#42216D
secondary
#7BA149
accent
#DD4B9E
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040D
muted
#7C797E

Preview Lab

Preview with #42216D

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

Preview Lab → · Contrast checker → · Palette generator →

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