#42208D#42208D

#42208D is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.4% C 0.166 H 289.7°. Best body text is #FFFFFF at 11.52:1 contrast (WCAG AA passes).

Color values

HEX#42208D
RGBrgb(66, 32, 141)
HSLhsl(259, 63%, 34%)
HSVhsv(259, 77%, 55%)
CMYKcmyk(53.2%, 77.3%, 0%, 44.7%)
CIE-LABlab(24.04, 42.51, -54.38)
CIE-LCHlch(24.04, 69.03, 308.02°)
OKLaboklab(36.43% 0.0561 -0.1563)
OKLCHoklch(36.43% 0.166 289.7)
XYZxyz(7.5696, 4.1140, 25.5894)
Luminance0.0411 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42208D #6B8D20
analogous
#20348D #42208D #79208D
triadic
#42208D #8D4220 #208D42
tetradic
#42208D #8D2034 #6B8D20 #208D79
square
#42208D #8D2034 #6B8D20 #208D79
split-complementary
#42208D #8D7920 #348D20
monochromatic
#130929 #2B155B #42208D #592BBF #7A50D7

Accessibility & contrast

On white

11.52
#42208D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#42208D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42208D
11.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42208D#FFFFFF#000000##FFFFFF
##42208D1.0011.521.8211.52
#FFFFFF11.521.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B90
Deuteranopia (green-blind)
#00378B
Tritanopia (blue-blind)
#263E55
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #42208d;
/* rgb */ color: rgb(66, 32, 141);
/* oklch */ color: oklch(36.4% 0.166 289.7);
Tailwind
colors: {
  custom: {
    50: '#7f60af',
    500: '#42208d',
    950: '#000000',
  },
}
SCSS
$custom: #42208d;
$custom-light: #7f60af;
$custom-dark: #000000;
JSON
{
  "hex": "#42208d",
  "rgb": {
    "r": 66,
    "g": 32,
    "b": 141
  },
  "hsl": {
    "h": 258.716,
    "s": 63.006,
    "l": 33.922
  },
  "oklch": {
    "l": 0.3643,
    "c": 0.16604,
    "h": 289.7
  },
  "luminance": 0.04114
}

Semantic roles & 50–950 ramp

primary
#42208D
secondary
#99BA4E
accent
#E642B3
background
#F8F5FA
surface
#EFEAF5
border
#CAC6CF
text
#0B0510
muted
#7C797F

Preview Lab

Preview with #42208D

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

Preview Lab → · Contrast checker → · Palette generator →

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