#42216E#42216E

#42216E is a dark, vivid violet. Relative luminance 0.034; OKLCH L 33.8% C 0.127 H 299.1°. Best body text is #FFFFFF at 12.54:1 contrast (WCAG AA passes).

Color values

HEX#42216E
RGBrgb(66, 33, 110)
HSLhsl(266, 54%, 28%)
HSVhsv(266, 70%, 43%)
CMYKcmyk(40%, 70%, 0%, 56.9%)
CIE-LABlab(21.47, 33.08, -38.92)
CIE-LCHlch(21.47, 51.08, 310.36°)
OKLaboklab(33.75% 0.0618 -0.1109)
OKLCHoklch(33.75% 0.127 299.1)
XYZxyz(5.6044, 3.3717, 15.1044)
Luminance0.0337 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42216E #4D6E21
analogous
#21276E #42216E #68216E
triadic
#42216E #6E4221 #216E42
tetradic
#42216E #6E2127 #4D6E21 #216E68
square
#42216E #6E2127 #4D6E21 #216E68
split-complementary
#42216E #6E6821 #276E21
monochromatic
#0E0718 #26133F #42216E #5E2F9D #7B43C7

Accessibility & contrast

On white

12.54
#42216E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#42216E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42216E
12.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42216E#FFFFFF#000000##FFFFFF
##42216E1.0012.541.6712.54
#FFFFFF12.541.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003370
Deuteranopia (green-blind)
#00336C
Tritanopia (blue-blind)
#383344
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #42216e;
/* rgb */ color: rgb(66, 33, 110);
/* oklch */ color: oklch(33.8% 0.127 299.1);
Tailwind
colors: {
  custom: {
    50: '#7a5f98',
    500: '#42216e',
    950: '#000000',
  },
}
SCSS
$custom: #42216e;
$custom-light: #7a5f98;
$custom-dark: #000000;
JSON
{
  "hex": "#42216e",
  "rgb": {
    "r": 66,
    "g": 33,
    "b": 110
  },
  "hsl": {
    "h": 265.714,
    "s": 53.846,
    "l": 28.039
  },
  "oklch": {
    "l": 0.33752,
    "c": 0.12695,
    "h": 299.1
  },
  "luminance": 0.03372
}

Semantic roles & 50–950 ramp

primary
#42216E
secondary
#7CA249
accent
#DD4B9E
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A050E
muted
#7C797E

Preview Lab

Preview with #42216E

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

Preview Lab → · Contrast checker → · Palette generator →

#42216E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva