#42218E#42218E

#42218E is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.7% C 0.166 H 289.3°. Best body text is #FFFFFF at 11.41:1 contrast (WCAG AA passes).

Color values

HEX#42218E
RGBrgb(66, 33, 142)
HSLhsl(258, 62%, 34%)
HSVhsv(258, 77%, 56%)
CMYKcmyk(53.5%, 76.8%, 0%, 44.3%)
CIE-LABlab(24.32, 42.30, -54.55)
CIE-LCHlch(24.32, 69.03, 307.79°)
OKLaboklab(36.65% 0.055 -0.1568)
OKLCHoklch(36.65% 0.166 289.3)
XYZxyz(7.6717, 4.1986, 25.9921)
Luminance0.0420 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42218E #6D8E21
analogous
#21378E #42218E #79218E
triadic
#42218E #8E4221 #218E42
tetradic
#42218E #8E2137 #6D8E21 #218E79
square
#42218E #8E2137 #6D8E21 #218E79
split-complementary
#42218E #8E7921 #378E21
monochromatic
#140A2B #2B155C #42218E #592DC0 #7B52D7

Accessibility & contrast

On white

11.41
#42218E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#42218E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42218E
11.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42218E#FFFFFF#000000##FFFFFF
##42218E1.0011.411.8411.41
#FFFFFF11.411.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C91
Deuteranopia (green-blind)
#00378C
Tritanopia (blue-blind)
#253F56
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #42218e;
/* rgb */ color: rgb(66, 33, 142);
/* oklch */ color: oklch(36.7% 0.166 289.3);
Tailwind
colors: {
  custom: {
    50: '#7f60b0',
    500: '#42218e',
    950: '#000000',
  },
}
SCSS
$custom: #42218e;
$custom-light: #7f60b0;
$custom-dark: #000000;
JSON
{
  "hex": "#42218e",
  "rgb": {
    "r": 66,
    "g": 33,
    "b": 142
  },
  "hsl": {
    "h": 258.165,
    "s": 62.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.36651,
    "c": 0.16616,
    "h": 289.3
  },
  "luminance": 0.04199
}

Semantic roles & 50–950 ramp

primary
#42218E
secondary
#9ABA50
accent
#E542B4
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #42218E

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

Preview Lab → · Contrast checker → · Palette generator →

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