#42219D#42219D

#42219D is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.1% C 0.184 H 286.0°. Best body text is #FFFFFF at 10.85:1 contrast (WCAG AA passes).

Color values

HEX#42219D
RGBrgb(66, 33, 157)
HSLhsl(256, 65%, 37%)
HSVhsv(256, 79%, 62%)
CMYKcmyk(58%, 79%, 0%, 38.4%)
CIE-LABlab(25.80, 46.65, -61.35)
CIE-LCHlch(25.80, 77.07, 307.25°)
OKLaboklab(38.14% 0.0506 -0.1767)
OKLCHoklch(38.14% 0.184 286)
XYZxyz(8.8746, 4.6798, 32.3274)
Luminance0.0468 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42219D #7C9D21
analogous
#213E9D #42219D #80219D
triadic
#42219D #9D4221 #219D42
tetradic
#42219D #9D213E #7C9D21 #219D80
square
#42219D #9D213E #7C9D21 #219D80
split-complementary
#42219D #9D8021 #3E9D21
monochromatic
#170C38 #2D166A #42219D #572CD0 #7E5CDD

Accessibility & contrast

On white

10.85
#42219D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#42219D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42219D
10.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42219D#FFFFFF#000000##FFFFFF
##42219D1.0010.851.9410.85
#FFFFFF10.851.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040A0
Deuteranopia (green-blind)
#00399B
Tritanopia (blue-blind)
#14455F
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #42219d;
/* rgb */ color: rgb(66, 33, 157);
/* oklch */ color: oklch(38.1% 0.184 286.0);
Tailwind
colors: {
  custom: {
    50: '#8261bb',
    500: '#42219d',
    950: '#000000',
  },
}
SCSS
$custom: #42219d;
$custom-light: #8261bb;
$custom-dark: #000000;
JSON
{
  "hex": "#42219d",
  "rgb": {
    "r": 66,
    "g": 33,
    "b": 157
  },
  "hsl": {
    "h": 255.968,
    "s": 65.263,
    "l": 37.255
  },
  "oklch": {
    "l": 0.38139,
    "c": 0.1838,
    "h": 286
  },
  "luminance": 0.0468
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #42219D

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

Preview Lab → · Contrast checker → · Palette generator →

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