#42216C#42216C

#42216C is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.6% C 0.124 H 299.9°. Best body text is #FFFFFF at 12.61:1 contrast (WCAG AA passes).

Color values

HEX#42216C
RGBrgb(66, 33, 108)
HSLhsl(266, 53%, 28%)
HSVhsv(266, 69%, 42%)
CMYKcmyk(38.9%, 69.4%, 0%, 57.6%)
CIE-LABlab(21.31, 32.52, -37.88)
CIE-LCHlch(21.31, 49.93, 310.64°)
OKLaboklab(33.59% 0.062 -0.1079)
OKLCHoklch(33.59% 0.124 299.9)
XYZxyz(5.4967, 3.3286, 14.5373)
Luminance0.0333 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42216C #4B6C21
analogous
#21266C #42216C #67216C
triadic
#42216C #6C4221 #216C42
tetradic
#42216C #6C2126 #4B6C21 #216C67
square
#42216C #6C2126 #4B6C21 #216C67
split-complementary
#42216C #6C6721 #266C21
monochromatic
#0E0717 #25133D #42216C #5F2F9B #7C42C5

Accessibility & contrast

On white

12.61
#42216C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #42216C
12.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42216C#FFFFFF#000000##FFFFFF
##42216C1.0012.611.6712.61
#FFFFFF12.611.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00336E
Deuteranopia (green-blind)
#00336A
Tritanopia (blue-blind)
#393243
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #42216c;
/* rgb */ color: rgb(66, 33, 108);
/* oklch */ color: oklch(33.6% 0.124 299.9);
Tailwind
colors: {
  custom: {
    50: '#7a5f97',
    500: '#42216c',
    950: '#000000',
  },
}
SCSS
$custom: #42216c;
$custom-light: #7a5f97;
$custom-dark: #000000;
JSON
{
  "hex": "#42216c",
  "rgb": {
    "r": 66,
    "g": 33,
    "b": 108
  },
  "hsl": {
    "h": 266.4,
    "s": 53.191,
    "l": 27.647
  },
  "oklch": {
    "l": 0.33586,
    "c": 0.12442,
    "h": 299.9
  },
  "luminance": 0.03329
}

Semantic roles & 50–950 ramp

primary
#42216C
secondary
#7AA049
accent
#DD4B9D
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040D
muted
#7C797E

Preview Lab

Preview with #42216C

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

Preview Lab → · Contrast checker → · Palette generator →

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