#42209D#42209D

#42209D is a dark, vivid violet. Relative luminance 0.046; OKLCH L 38.0% C 0.185 H 286.1°. Best body text is #FFFFFF at 10.91:1 contrast (WCAG AA passes).

Color values

HEX#42209D
RGBrgb(66, 32, 157)
HSLhsl(256, 66%, 37%)
HSVhsv(256, 80%, 62%)
CMYKcmyk(58%, 79.6%, 0%, 38.4%)
CIE-LABlab(25.64, 47.12, -61.62)
CIE-LCHlch(25.64, 77.57, 307.41°)
OKLaboklab(38.03% 0.0513 -0.1775)
OKLCHoklch(38.03% 0.185 286.1)
XYZxyz(8.8472, 4.6251, 32.3183)
Luminance0.0463 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42209D #7B9D20
analogous
#203D9D #42209D #81209D
triadic
#42209D #9D4220 #209D42
tetradic
#42209D #9D203D #7B9D20 #209D81
square
#42209D #9D203D #7B9D20 #209D81
split-complementary
#42209D #9D8120 #3D9D20
monochromatic
#170B37 #2D166A #42209D #572AD0 #7E5ADD

Accessibility & contrast

On white

10.91
#42209D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#42209D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42209D
10.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42209D#FFFFFF#000000##FFFFFF
##42209D1.0010.911.9310.91
#FFFFFF10.911.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040A0
Deuteranopia (green-blind)
#00399B
Tritanopia (blue-blind)
#14455E
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #42209d;
/* rgb */ color: rgb(66, 32, 157);
/* oklch */ color: oklch(38.0% 0.185 286.1);
Tailwind
colors: {
  custom: {
    50: '#8260bb',
    500: '#42209d',
    950: '#000000',
  },
}
SCSS
$custom: #42209d;
$custom-light: #8260bb;
$custom-dark: #000000;
JSON
{
  "hex": "#42209d",
  "rgb": {
    "r": 66,
    "g": 32,
    "b": 157
  },
  "hsl": {
    "h": 256.32,
    "s": 66.138,
    "l": 37.059
  },
  "oklch": {
    "l": 0.38025,
    "c": 0.18474,
    "h": 286.1
  },
  "luminance": 0.04626
}

Semantic roles & 50–950 ramp

primary
#42209D
secondary
#A5C157
accent
#E93FBB
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0C0512
muted
#7D7981

Preview Lab

Preview with #42209D

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

Preview Lab → · Contrast checker → · Palette generator →

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