#42218A#42218A

#42218A is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.3% C 0.161 H 290.3°. Best body text is #FFFFFF at 11.56:1 contrast (WCAG AA passes).

Color values

HEX#42218A
RGBrgb(66, 33, 138)
HSLhsl(259, 61%, 34%)
HSVhsv(259, 76%, 54%)
CMYKcmyk(52.2%, 76.1%, 0%, 45.9%)
CIE-LABlab(23.94, 41.14, -52.69)
CIE-LCHlch(23.94, 66.85, 307.98°)
OKLaboklab(36.27% 0.056 -0.1513)
OKLCHoklch(36.27% 0.161 290.3)
XYZxyz(7.3768, 4.0806, 24.4388)
Luminance0.0408 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42218A #698A21
analogous
#21348A #42218A #76218A
triadic
#42218A #8A4221 #218A42
tetradic
#42218A #8A2134 #698A21 #218A76
square
#42218A #8A2134 #698A21 #218A76
split-complementary
#42218A #8A7621 #348A21
monochromatic
#130927 #2A1559 #42218A #5A2DBB #7A50D5

Accessibility & contrast

On white

11.56
#42218A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#42218A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42218A
11.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42218A#FFFFFF#000000##FFFFFF
##42218A1.0011.561.8211.56
#FFFFFF11.561.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.561.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #42218a;
/* rgb */ color: rgb(66, 33, 138);
/* oklch */ color: oklch(36.3% 0.161 290.3);
Tailwind
colors: {
  custom: {
    50: '#7e60ad',
    500: '#42218a',
    950: '#000000',
  },
}
SCSS
$custom: #42218a;
$custom-light: #7e60ad;
$custom-dark: #000000;
JSON
{
  "hex": "#42218a",
  "rgb": {
    "r": 66,
    "g": 33,
    "b": 138
  },
  "hsl": {
    "h": 258.857,
    "s": 61.404,
    "l": 33.529
  },
  "oklch": {
    "l": 0.36266,
    "c": 0.16138,
    "h": 290.3
  },
  "luminance": 0.04081
}

Semantic roles & 50–950 ramp

primary
#42218A
secondary
#97B94E
accent
#E543B2
background
#F8F5FA
surface
#EFEAF4
border
#CAC6CE
text
#0B0510
muted
#7C797F

Preview Lab

Preview with #42218A

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

Preview Lab → · Contrast checker → · Palette generator →

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