#42208F#42208F

#42208F is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.6% C 0.168 H 289.2°. Best body text is #FFFFFF at 11.45:1 contrast (WCAG AA passes).

Color values

HEX#42208F
RGBrgb(66, 32, 143)
HSLhsl(258, 63%, 34%)
HSVhsv(258, 78%, 56%)
CMYKcmyk(53.8%, 77.6%, 0%, 43.9%)
CIE-LABlab(24.24, 43.09, -55.30)
CIE-LCHlch(24.24, 70.11, 307.92°)
OKLaboklab(36.63% 0.0555 -0.159)
OKLCHoklch(36.63% 0.168 289.2)
XYZxyz(7.7198, 4.1741, 26.3802)
Luminance0.0417 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42208F #6D8F20
analogous
#20368F #42208F #7A208F
triadic
#42208F #8F4220 #208F42
tetradic
#42208F #8F2036 #6D8F20 #208F7A
square
#42208F #8F2036 #6D8F20 #208F7A
split-complementary
#42208F #8F7A20 #368F20
monochromatic
#140A2B #2B155D #42208F #592BC1 #7B51D8

Accessibility & contrast

On white

11.45
#42208F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #42208F
11.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42208F#FFFFFF#000000##FFFFFF
##42208F1.0011.451.8311.45
#FFFFFF11.451.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C92
Deuteranopia (green-blind)
#00378D
Tritanopia (blue-blind)
#253F56
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #42208f;
/* rgb */ color: rgb(66, 32, 143);
/* oklch */ color: oklch(36.6% 0.168 289.2);
Tailwind
colors: {
  custom: {
    50: '#7f60b1',
    500: '#42208f',
    950: '#000000',
  },
}
SCSS
$custom: #42208f;
$custom-light: #7f60b1;
$custom-dark: #000000;
JSON
{
  "hex": "#42208f",
  "rgb": {
    "r": 66,
    "g": 32,
    "b": 143
  },
  "hsl": {
    "h": 258.378,
    "s": 63.429,
    "l": 34.314
  },
  "oklch": {
    "l": 0.36625,
    "c": 0.1684,
    "h": 289.2
  },
  "luminance": 0.04174
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #42208F

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

Preview Lab → · Contrast checker → · Palette generator →

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