#42217C#42217C

#42217C is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.0% C 0.144 H 294.3°. Best body text is #FFFFFF at 12.07:1 contrast (WCAG AA passes).

Color values

HEX#42217C
RGBrgb(66, 33, 124)
HSLhsl(262, 58%, 31%)
HSVhsv(262, 73%, 49%)
CMYKcmyk(46.8%, 73.4%, 0%, 51.4%)
CIE-LABlab(22.66, 37.08, -45.97)
CIE-LCHlch(22.66, 59.06, 308.89°)
OKLaboklab(34.97% 0.0593 -0.1316)
OKLCHoklch(34.97% 0.144 294.3)
XYZxyz(6.4277, 3.7010, 19.4406)
Luminance0.0370 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42217C #5B7C21
analogous
#212D7C #42217C #6F217C
triadic
#42217C #7C4221 #217C42
tetradic
#42217C #7C212D #5B7C21 #217C6F
square
#42217C #7C212D #5B7C21 #217C6F
split-complementary
#42217C #7C6F21 #2D7C21
monochromatic
#0F071B #28144C #42217C #5C2EAC #7949CF

Accessibility & contrast

On white

12.07
#42217C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#42217C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42217C
12.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42217C#FFFFFF#000000##FFFFFF
##42217C1.0012.071.7412.07
#FFFFFF12.071.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377F
Deuteranopia (green-blind)
#00357A
Tritanopia (blue-blind)
#31384C
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #42217c;
/* rgb */ color: rgb(66, 33, 124);
/* oklch */ color: oklch(35.0% 0.144 294.3);
Tailwind
colors: {
  custom: {
    50: '#7c5fa3',
    500: '#42217c',
    950: '#000000',
  },
}
SCSS
$custom: #42217c;
$custom-light: #7c5fa3;
$custom-dark: #000000;
JSON
{
  "hex": "#42217c",
  "rgb": {
    "r": 66,
    "g": 33,
    "b": 124
  },
  "hsl": {
    "h": 261.758,
    "s": 57.962,
    "l": 30.784
  },
  "oklch": {
    "l": 0.34967,
    "c": 0.14437,
    "h": 294.3
  },
  "luminance": 0.03701
}

Semantic roles & 50–950 ramp

primary
#42217C
secondary
#8AAF4A
accent
#E147A9
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A050F
muted
#7C797F

Preview Lab

Preview with #42217C

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

Preview Lab → · Contrast checker → · Palette generator →

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