#42216F#42216F

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

Color values

HEX#42216F
RGBrgb(66, 33, 111)
HSLhsl(265, 54%, 28%)
HSVhsv(265, 70%, 44%)
CMYKcmyk(40.5%, 70.3%, 0%, 56.5%)
CIE-LABlab(21.56, 33.36, -39.44)
CIE-LCHlch(21.56, 51.66, 310.23°)
OKLaboklab(33.84% 0.0616 -0.1124)
OKLCHoklch(33.84% 0.128 298.7)
XYZxyz(5.6591, 3.3936, 15.3927)
Luminance0.0339 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42216F #4E6F21
analogous
#21276F #42216F #69216F
triadic
#42216F #6F4221 #216F42
tetradic
#42216F #6F2127 #4E6F21 #216F69
square
#42216F #6F2127 #4E6F21 #216F69
split-complementary
#42216F #6F6921 #276F21
monochromatic
#0E0718 #261340 #42216F #5E2F9E #7B43C7

Accessibility & contrast

On white

12.51
#42216F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#42216F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42216F
12.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42216F#FFFFFF#000000##FFFFFF
##42216F1.0012.511.6812.51
#FFFFFF12.511.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003471
Deuteranopia (green-blind)
#00336D
Tritanopia (blue-blind)
#373345
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #42216f;
/* rgb */ color: rgb(66, 33, 111);
/* oklch */ color: oklch(33.8% 0.128 298.7);
Tailwind
colors: {
  custom: {
    50: '#7b5f99',
    500: '#42216f',
    950: '#000000',
  },
}
SCSS
$custom: #42216f;
$custom-light: #7b5f99;
$custom-dark: #000000;
JSON
{
  "hex": "#42216f",
  "rgb": {
    "r": 66,
    "g": 33,
    "b": 111
  },
  "hsl": {
    "h": 265.385,
    "s": 54.167,
    "l": 28.235
  },
  "oklch": {
    "l": 0.33836,
    "c": 0.1282,
    "h": 298.7
  },
  "luminance": 0.03394
}

Semantic roles & 50–950 ramp

primary
#42216F
secondary
#7DA349
accent
#DE4A9F
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A050E
muted
#7C797E

Preview Lab

Preview with #42216F

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

Preview Lab → · Contrast checker → · Palette generator →

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