#42216B#42216B

#42216B is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.5% C 0.123 H 300.3°. Best body text is #FFFFFF at 12.64:1 contrast (WCAG AA passes).

Color values

HEX#42216B
RGBrgb(66, 33, 107)
HSLhsl(267, 53%, 27%)
HSVhsv(267, 69%, 42%)
CMYKcmyk(38.3%, 69.2%, 0%, 58%)
CIE-LABlab(21.24, 32.24, -37.36)
CIE-LCHlch(21.24, 49.35, 310.79°)
OKLaboklab(33.5% 0.0621 -0.1063)
OKLCHoklch(33.5% 0.123 300.3)
XYZxyz(5.4438, 3.3075, 14.2587)
Luminance0.0331 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42216B #4A6B21
analogous
#21256B #42216B #67216B
triadic
#42216B #6B4221 #216B42
tetradic
#42216B #6B2125 #4A6B21 #216B67
square
#42216B #6B2125 #4A6B21 #216B67
split-complementary
#42216B #6B6721 #256B21
monochromatic
#0E0717 #25133C #42216B #5F2F9A #7C42C5

Accessibility & contrast

On white

12.64
#42216B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#42216B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42216B
12.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42216B#FFFFFF#000000##FFFFFF
##42216B1.0012.641.6612.64
#FFFFFF12.641.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.641.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #42216b;
/* rgb */ color: rgb(66, 33, 107);
/* oklch */ color: oklch(33.5% 0.123 300.3);
Tailwind
colors: {
  custom: {
    50: '#7a5f96',
    500: '#42216b',
    950: '#000000',
  },
}
SCSS
$custom: #42216b;
$custom-light: #7a5f96;
$custom-dark: #000000;
JSON
{
  "hex": "#42216b",
  "rgb": {
    "r": 66,
    "g": 33,
    "b": 107
  },
  "hsl": {
    "h": 266.757,
    "s": 52.857,
    "l": 27.451
  },
  "oklch": {
    "l": 0.33504,
    "c": 0.12316,
    "h": 300.3
  },
  "luminance": 0.03308
}

Semantic roles & 50–950 ramp

primary
#42216B
secondary
#799F49
accent
#DC4C9C
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09040D
muted
#7B797E

Preview Lab

Preview with #42216B

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

Preview Lab → · Contrast checker → · Palette generator →

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