#42208B#42208B

#42208B is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.2% C 0.164 H 290.2°. Best body text is #FFFFFF at 11.60:1 contrast (WCAG AA passes).

Color values

HEX#42208B
RGBrgb(66, 32, 139)
HSLhsl(259, 63%, 34%)
HSVhsv(259, 77%, 55%)
CMYKcmyk(52.5%, 77%, 0%, 45.5%)
CIE-LABlab(23.85, 41.94, -53.45)
CIE-LCHlch(23.85, 67.94, 308.12°)
OKLaboklab(36.24% 0.0566 -0.1536)
OKLCHoklch(36.24% 0.164 290.2)
XYZxyz(7.4221, 4.0550, 24.8127)
Luminance0.0406 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42208B #698B20
analogous
#20348B #42208B #77208B
triadic
#42208B #8B4220 #208B42
tetradic
#42208B #8B2034 #698B20 #208B77
square
#42208B #8B2034 #698B20 #208B77
split-complementary
#42208B #8B7720 #348B20
monochromatic
#130928 #2A1559 #42208B #5A2BBD #7A4FD6

Accessibility & contrast

On white

11.60
#42208B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#42208B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42208B
11.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42208B#FFFFFF#000000##FFFFFF
##42208B1.0011.601.8111.60
#FFFFFF11.601.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8E
Deuteranopia (green-blind)
#003689
Tritanopia (blue-blind)
#283D54
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #42208b;
/* rgb */ color: rgb(66, 32, 139);
/* oklch */ color: oklch(36.2% 0.164 290.2);
Tailwind
colors: {
  custom: {
    50: '#7f5fae',
    500: '#42208b',
    950: '#000000',
  },
}
SCSS
$custom: #42208b;
$custom-light: #7f5fae;
$custom-dark: #000000;
JSON
{
  "hex": "#42208b",
  "rgb": {
    "r": 66,
    "g": 32,
    "b": 139
  },
  "hsl": {
    "h": 259.065,
    "s": 62.573,
    "l": 33.529
  },
  "oklch": {
    "l": 0.36236,
    "c": 0.16367,
    "h": 290.2
  },
  "luminance": 0.04055
}

Semantic roles & 50–950 ramp

primary
#42208B
secondary
#97BA4D
accent
#E642B2
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B0510
muted
#7C797F

Preview Lab

Preview with #42208B

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

Preview Lab → · Contrast checker → · Palette generator →

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