#42217A#42217A

#42217A is a dark, vivid violet. Relative luminance 0.037; OKLCH L 34.8% C 0.142 H 294.9°. Best body text is #FFFFFF at 12.14:1 contrast (WCAG AA passes).

Color values

HEX#42217A
RGBrgb(66, 33, 122)
HSLhsl(262, 57%, 30%)
HSVhsv(262, 73%, 48%)
CMYKcmyk(45.9%, 73%, 0%, 52.2%)
CIE-LABlab(22.48, 36.51, -44.98)
CIE-LCHlch(22.48, 57.93, 309.06°)
OKLaboklab(34.79% 0.0597 -0.1287)
OKLCHoklch(34.79% 0.142 294.9)
XYZxyz(6.3025, 3.6509, 18.7812)
Luminance0.0365 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42217A #597A21
analogous
#212D7A #42217A #6E217A
triadic
#42217A #7A4221 #217A42
tetradic
#42217A #7A212D #597A21 #217A6E
square
#42217A #7A212D #597A21 #217A6E
split-complementary
#42217A #7A6E21 #2D7A21
monochromatic
#0E071A #28144A #42217A #5C2EAA #7948CD

Accessibility & contrast

On white

12.14
#42217A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#42217A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42217A
12.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42217A#FFFFFF#000000##FFFFFF
##42217A1.0012.141.7312.14
#FFFFFF12.141.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367D
Deuteranopia (green-blind)
#003478
Tritanopia (blue-blind)
#32374B
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #42217a;
/* rgb */ color: rgb(66, 33, 122);
/* oklch */ color: oklch(34.8% 0.142 294.9);
Tailwind
colors: {
  custom: {
    50: '#7c5fa1',
    500: '#42217a',
    950: '#000000',
  },
}
SCSS
$custom: #42217a;
$custom-light: #7c5fa1;
$custom-dark: #000000;
JSON
{
  "hex": "#42217a",
  "rgb": {
    "r": 66,
    "g": 33,
    "b": 122
  },
  "hsl": {
    "h": 262.247,
    "s": 57.419,
    "l": 30.392
  },
  "oklch": {
    "l": 0.34788,
    "c": 0.14191,
    "h": 294.9
  },
  "luminance": 0.03651
}

Semantic roles & 50–950 ramp

primary
#42217A
secondary
#88AD4A
accent
#E147A8
background
#F7F5FA
surface
#EEE9F3
border
#C9C5CD
text
#0A050F
muted
#7C797F

Preview Lab

Preview with #42217A

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

Preview Lab → · Contrast checker → · Palette generator →

#42217A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva