#42208A#42208A

#42208A is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.1% C 0.162 H 290.5°. Best body text is #FFFFFF at 11.63:1 contrast (WCAG AA passes).

Color values

HEX#42208A
RGBrgb(66, 32, 138)
HSLhsl(259, 62%, 33%)
HSVhsv(259, 77%, 54%)
CMYKcmyk(52.2%, 76.8%, 0%, 45.9%)
CIE-LABlab(23.76, 41.65, -52.98)
CIE-LCHlch(23.76, 67.39, 308.17°)
OKLaboklab(36.14% 0.0569 -0.1522)
OKLCHoklch(36.14% 0.162 290.5)
XYZxyz(7.3494, 4.0259, 24.4297)
Luminance0.0403 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42208A #688A20
analogous
#20338A #42208A #77208A
triadic
#42208A #8A4220 #208A42
tetradic
#42208A #8A2033 #688A20 #208A77
square
#42208A #8A2033 #688A20 #208A77
split-complementary
#42208A #8A7720 #338A20
monochromatic
#120927 #2A1458 #42208A #5A2CBC #7A4ED6

Accessibility & contrast

On white

11.63
#42208A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #42208A
11.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42208A#FFFFFF#000000##FFFFFF
##42208A1.0011.631.8111.63
#FFFFFF11.631.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8D
Deuteranopia (green-blind)
#003688
Tritanopia (blue-blind)
#293D53
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #42208a;
/* rgb */ color: rgb(66, 32, 138);
/* oklch */ color: oklch(36.1% 0.162 290.5);
Tailwind
colors: {
  custom: {
    50: '#7e5fad',
    500: '#42208a',
    950: '#000000',
  },
}
SCSS
$custom: #42208a;
$custom-light: #7e5fad;
$custom-dark: #000000;
JSON
{
  "hex": "#42208a",
  "rgb": {
    "r": 66,
    "g": 32,
    "b": 138
  },
  "hsl": {
    "h": 259.245,
    "s": 62.353,
    "l": 33.333
  },
  "oklch": {
    "l": 0.3614,
    "c": 0.16248,
    "h": 290.5
  },
  "luminance": 0.04026
}

Semantic roles & 50–950 ramp

primary
#42208A
secondary
#96B94D
accent
#E542B1
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B0510
muted
#7C797F

Preview Lab

Preview with #42208A

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

Preview Lab → · Contrast checker → · Palette generator →

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