#42208E#42208E

#42208E is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.5% C 0.167 H 289.5°. Best body text is #FFFFFF at 11.48:1 contrast (WCAG AA passes).

Color values

HEX#42208E
RGBrgb(66, 32, 142)
HSLhsl(259, 63%, 34%)
HSVhsv(259, 77%, 56%)
CMYKcmyk(53.5%, 77.5%, 0%, 44.3%)
CIE-LABlab(24.14, 42.80, -54.84)
CIE-LCHlch(24.14, 69.57, 307.97°)
OKLaboklab(36.53% 0.0558 -0.1576)
OKLCHoklch(36.53% 0.167 289.5)
XYZxyz(7.6443, 4.1439, 25.9830)
Luminance0.0414 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42208E #6C8E20
analogous
#20358E #42208E #79208E
triadic
#42208E #8E4220 #208E42
tetradic
#42208E #8E2035 #6C8E20 #208E79
square
#42208E #8E2035 #6C8E20 #208E79
split-complementary
#42208E #8E7920 #358E20
monochromatic
#14092A #2B155C #42208E #592BC0 #7A51D8

Accessibility & contrast

On white

11.48
#42208E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#42208E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42208E
11.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42208E#FFFFFF#000000##FFFFFF
##42208E1.0011.481.8311.48
#FFFFFF11.481.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B91
Deuteranopia (green-blind)
#00378C
Tritanopia (blue-blind)
#253F56
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #42208e;
/* rgb */ color: rgb(66, 32, 142);
/* oklch */ color: oklch(36.5% 0.167 289.5);
Tailwind
colors: {
  custom: {
    50: '#7f60b0',
    500: '#42208e',
    950: '#000000',
  },
}
SCSS
$custom: #42208e;
$custom-light: #7f60b0;
$custom-dark: #000000;
JSON
{
  "hex": "#42208e",
  "rgb": {
    "r": 66,
    "g": 32,
    "b": 142
  },
  "hsl": {
    "h": 258.545,
    "s": 63.218,
    "l": 34.118
  },
  "oklch": {
    "l": 0.36527,
    "c": 0.16722,
    "h": 289.5
  },
  "luminance": 0.04144
}

Semantic roles & 50–950 ramp

primary
#42208E
secondary
#9ABB4F
accent
#E642B3
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #42208E

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

Preview Lab → · Contrast checker → · Palette generator →

#42208E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva