#42219C#42219C

#42219C is a dark, vivid violet. Relative luminance 0.046; OKLCH L 38.0% C 0.183 H 286.2°. Best body text is #FFFFFF at 10.89:1 contrast (WCAG AA passes).

Color values

HEX#42219C
RGBrgb(66, 33, 156)
HSLhsl(256, 65%, 37%)
HSVhsv(256, 79%, 61%)
CMYKcmyk(57.7%, 78.8%, 0%, 38.8%)
CIE-LABlab(25.70, 46.36, -60.91)
CIE-LCHlch(25.70, 76.54, 307.28°)
OKLaboklab(38.04% 0.0509 -0.1754)
OKLCHoklch(38.04% 0.183 286.2)
XYZxyz(8.7896, 4.6458, 31.8796)
Luminance0.0465 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42219C #7B9C21
analogous
#213D9C #42219C #80219C
triadic
#42219C #9C4221 #219C42
tetradic
#42219C #9C213D #7B9C21 #219C80
square
#42219C #9C213D #7B9C21 #219C80
split-complementary
#42219C #9C8021 #3D9C21
monochromatic
#170C37 #2D1669 #42219C #572CCF #7E5BDC

Accessibility & contrast

On white

10.89
#42219C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#42219C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42219C
10.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42219C#FFFFFF#000000##FFFFFF
##42219C1.0010.891.9310.89
#FFFFFF10.891.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00409F
Deuteranopia (green-blind)
#00399A
Tritanopia (blue-blind)
#16455E
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #42219c;
/* rgb */ color: rgb(66, 33, 156);
/* oklch */ color: oklch(38.0% 0.183 286.2);
Tailwind
colors: {
  custom: {
    50: '#8161ba',
    500: '#42219c',
    950: '#000000',
  },
}
SCSS
$custom: #42219c;
$custom-light: #8161ba;
$custom-dark: #000000;
JSON
{
  "hex": "#42219c",
  "rgb": {
    "r": 66,
    "g": 33,
    "b": 156
  },
  "hsl": {
    "h": 256.098,
    "s": 65.079,
    "l": 37.059
  },
  "oklch": {
    "l": 0.38038,
    "c": 0.18263,
    "h": 286.2
  },
  "luminance": 0.04646
}

Semantic roles & 50–950 ramp

primary
#42219C
secondary
#A5C158
accent
#E840BB
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0C0512
muted
#7D7981

Preview Lab

Preview with #42219C

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

Preview Lab → · Contrast checker → · Palette generator →

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