#42219A#42219A

#42219A is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.8% C 0.180 H 286.6°. Best body text is #FFFFFF at 10.96:1 contrast (WCAG AA passes).

Color values

HEX#42219A
RGBrgb(66, 33, 154)
HSLhsl(256, 65%, 37%)
HSVhsv(256, 79%, 60%)
CMYKcmyk(57.1%, 78.6%, 0%, 39.6%)
CIE-LABlab(25.50, 45.78, -60.02)
CIE-LCHlch(25.50, 75.48, 307.34°)
OKLaboklab(37.84% 0.0515 -0.1728)
OKLCHoklch(37.84% 0.18 286.6)
XYZxyz(8.6216, 4.5786, 30.9950)
Luminance0.0458 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42219A #799A21
analogous
#213C9A #42219A #7F219A
triadic
#42219A #9A4221 #219A42
tetradic
#42219A #9A213C #799A21 #219A7F
square
#42219A #9A213C #799A21 #219A7F
split-complementary
#42219A #9A7F21 #3C9A21
monochromatic
#170B35 #2C1668 #42219A #582CCC #7D5ADC

Accessibility & contrast

On white

10.96
#42219A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#42219A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42219A
10.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42219A#FFFFFF#000000##FFFFFF
##42219A1.0010.961.9210.96
#FFFFFF10.961.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F9D
Deuteranopia (green-blind)
#003998
Tritanopia (blue-blind)
#19445D
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #42219a;
/* rgb */ color: rgb(66, 33, 154);
/* oklch */ color: oklch(37.8% 0.180 286.6);
Tailwind
colors: {
  custom: {
    50: '#8161b9',
    500: '#42219a',
    950: '#000000',
  },
}
SCSS
$custom: #42219a;
$custom-light: #8161b9;
$custom-dark: #000000;
JSON
{
  "hex": "#42219a",
  "rgb": {
    "r": 66,
    "g": 33,
    "b": 154
  },
  "hsl": {
    "h": 256.364,
    "s": 64.706,
    "l": 36.667
  },
  "oklch": {
    "l": 0.37836,
    "c": 0.18031,
    "h": 286.6
  },
  "luminance": 0.04579
}

Semantic roles & 50–950 ramp

primary
#42219A
secondary
#A3C057
accent
#E840BA
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #42219A

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

Preview Lab → · Contrast checker → · Palette generator →

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