#42219B#42219B

#42219B is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.9% C 0.181 H 286.4°. Best body text is #FFFFFF at 10.92:1 contrast (WCAG AA passes).

Color values

HEX#42219B
RGBrgb(66, 33, 155)
HSLhsl(256, 65%, 37%)
HSVhsv(256, 79%, 61%)
CMYKcmyk(57.4%, 78.7%, 0%, 39.2%)
CIE-LABlab(25.60, 46.07, -60.46)
CIE-LCHlch(25.60, 76.02, 307.31°)
OKLaboklab(37.94% 0.0512 -0.1741)
OKLCHoklch(37.94% 0.181 286.4)
XYZxyz(8.7052, 4.6120, 31.4355)
Luminance0.0461 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42219B #7A9B21
analogous
#213D9B #42219B #7F219B
triadic
#42219B #9B4221 #219B42
tetradic
#42219B #9B213D #7A9B21 #219B7F
square
#42219B #9B213D #7A9B21 #219B7F
split-complementary
#42219B #9B7F21 #3D9B21
monochromatic
#170C36 #2D1669 #42219B #572CCD #7D5ADC

Accessibility & contrast

On white

10.92
#42219B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #42219B
10.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42219B#FFFFFF#000000##FFFFFF
##42219B1.0010.921.9210.92
#FFFFFF10.921.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00409E
Deuteranopia (green-blind)
#003999
Tritanopia (blue-blind)
#17445D
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #42219b;
/* rgb */ color: rgb(66, 33, 155);
/* oklch */ color: oklch(37.9% 0.181 286.4);
Tailwind
colors: {
  custom: {
    50: '#8161ba',
    500: '#42219b',
    950: '#000000',
  },
}
SCSS
$custom: #42219b;
$custom-light: #8161ba;
$custom-dark: #000000;
JSON
{
  "hex": "#42219b",
  "rgb": {
    "r": 66,
    "g": 33,
    "b": 155
  },
  "hsl": {
    "h": 256.23,
    "s": 64.894,
    "l": 36.863
  },
  "oklch": {
    "l": 0.37937,
    "c": 0.18147,
    "h": 286.4
  },
  "luminance": 0.04613
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #42219B

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

Preview Lab → · Contrast checker → · Palette generator →

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