#42218D#42218D

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

Color values

HEX#42218D
RGBrgb(66, 33, 141)
HSLhsl(258, 62%, 34%)
HSVhsv(258, 77%, 55%)
CMYKcmyk(53.2%, 76.6%, 0%, 44.7%)
CIE-LABlab(24.22, 42.01, -54.09)
CIE-LCHlch(24.22, 68.49, 307.84°)
OKLaboklab(36.55% 0.0552 -0.1554)
OKLCHoklch(36.55% 0.165 289.6)
XYZxyz(7.5969, 4.1687, 25.5985)
Luminance0.0417 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42218D #6C8D21
analogous
#21368D #42218D #78218D
triadic
#42218D #8D4221 #218D42
tetradic
#42218D #8D2136 #6C8D21 #218D78
square
#42218D #8D2136 #6C8D21 #218D78
split-complementary
#42218D #8D7821 #368D21
monochromatic
#140A2A #2B155B #42218D #592DBF #7A52D6

Accessibility & contrast

On white

11.45
#42218D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#42218D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42218D
11.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42218D#FFFFFF#000000##FFFFFF
##42218D1.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)
#003C90
Deuteranopia (green-blind)
#00378B
Tritanopia (blue-blind)
#263F55
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #42218d;
/* rgb */ color: rgb(66, 33, 141);
/* oklch */ color: oklch(36.6% 0.165 289.6);
Tailwind
colors: {
  custom: {
    50: '#7f60af',
    500: '#42218d',
    950: '#000000',
  },
}
SCSS
$custom: #42218d;
$custom-light: #7f60af;
$custom-dark: #000000;
JSON
{
  "hex": "#42218d",
  "rgb": {
    "r": 66,
    "g": 33,
    "b": 141
  },
  "hsl": {
    "h": 258.333,
    "s": 62.069,
    "l": 34.118
  },
  "oklch": {
    "l": 0.36554,
    "c": 0.16497,
    "h": 289.6
  },
  "luminance": 0.04169
}

Semantic roles & 50–950 ramp

primary
#42218D
secondary
#9ABA50
accent
#E543B3
background
#F8F5FA
surface
#EFEAF5
border
#CAC6CF
text
#0B0510
muted
#7C797F

Preview Lab

Preview with #42218D

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

Preview Lab → · Contrast checker → · Palette generator →

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