#42218F#42218F

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

Color values

HEX#42218F
RGBrgb(66, 33, 143)
HSLhsl(258, 63%, 35%)
HSVhsv(258, 77%, 56%)
CMYKcmyk(53.8%, 76.9%, 0%, 43.9%)
CIE-LABlab(24.41, 42.59, -55.02)
CIE-LCHlch(24.41, 69.58, 307.75°)
OKLaboklab(36.75% 0.0547 -0.1582)
OKLCHoklch(36.75% 0.167 289.1)
XYZxyz(7.7471, 4.2288, 26.3893)
Luminance0.0423 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42218F #6E8F21
analogous
#21378F #42218F #79218F
triadic
#42218F #8F4221 #218F42
tetradic
#42218F #8F2137 #6E8F21 #218F79
square
#42218F #8F2137 #6E8F21 #218F79
split-complementary
#42218F #8F7921 #378F21
monochromatic
#140A2C #2B165D #42218F #592CC1 #7B53D7

Accessibility & contrast

On white

11.38
#42218F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#42218F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42218F
11.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42218F#FFFFFF#000000##FFFFFF
##42218F1.0011.381.8511.38
#FFFFFF11.381.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C92
Deuteranopia (green-blind)
#00378D
Tritanopia (blue-blind)
#253F57
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #42218f;
/* rgb */ color: rgb(66, 33, 143);
/* oklch */ color: oklch(36.7% 0.167 289.1);
Tailwind
colors: {
  custom: {
    50: '#7f60b1',
    500: '#42218f',
    950: '#000000',
  },
}
SCSS
$custom: #42218f;
$custom-light: #7f60b1;
$custom-dark: #000000;
JSON
{
  "hex": "#42218f",
  "rgb": {
    "r": 66,
    "g": 33,
    "b": 143
  },
  "hsl": {
    "h": 258,
    "s": 62.5,
    "l": 34.51
  },
  "oklch": {
    "l": 0.36748,
    "c": 0.16735,
    "h": 289.1
  },
  "luminance": 0.04229
}

Semantic roles & 50–950 ramp

primary
#42218F
secondary
#9BBB51
accent
#E642B5
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #42218F

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

Preview Lab → · Contrast checker → · Palette generator →

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