#42217D#42217D

#42217D is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.1% C 0.146 H 294.0°. Best body text is #FFFFFF at 12.03:1 contrast (WCAG AA passes).

Color values

HEX#42217D
RGBrgb(66, 33, 125)
HSLhsl(262, 58%, 31%)
HSVhsv(262, 74%, 49%)
CMYKcmyk(47.2%, 73.6%, 0%, 51%)
CIE-LABlab(22.75, 37.37, -46.46)
CIE-LCHlch(22.75, 59.62, 308.81°)
OKLaboklab(35.06% 0.0591 -0.1331)
OKLCHoklch(35.06% 0.146 294)
XYZxyz(6.4913, 3.7264, 19.7753)
Luminance0.0373 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42217D #5C7D21
analogous
#212E7D #42217D #70217D
triadic
#42217D #7D4221 #217D42
tetradic
#42217D #7D212E #5C7D21 #217D70
square
#42217D #7D212E #5C7D21 #217D70
split-complementary
#42217D #7D7021 #2E7D21
monochromatic
#0F071C #28144D #42217D #5C2EAD #7949CF

Accessibility & contrast

On white

12.03
#42217D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#42217D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42217D
12.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42217D#FFFFFF#000000##FFFFFF
##42217D1.0012.031.7512.03
#FFFFFF12.031.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003780
Deuteranopia (green-blind)
#00357B
Tritanopia (blue-blind)
#31384C
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #42217d;
/* rgb */ color: rgb(66, 33, 125);
/* oklch */ color: oklch(35.1% 0.146 294.0);
Tailwind
colors: {
  custom: {
    50: '#7c5fa3',
    500: '#42217d',
    950: '#000000',
  },
}
SCSS
$custom: #42217d;
$custom-light: #7c5fa3;
$custom-dark: #000000;
JSON
{
  "hex": "#42217d",
  "rgb": {
    "r": 66,
    "g": 33,
    "b": 125
  },
  "hsl": {
    "h": 261.522,
    "s": 58.228,
    "l": 30.98
  },
  "oklch": {
    "l": 0.35057,
    "c": 0.1456,
    "h": 294
  },
  "luminance": 0.03727
}

Semantic roles & 50–950 ramp

primary
#42217D
secondary
#8BB04A
accent
#E146AA
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A050F
muted
#7C797F

Preview Lab

Preview with #42217D

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

Preview Lab → · Contrast checker → · Palette generator →

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