#42209E#42209E

#42209E is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.1% C 0.186 H 285.9°. Best body text is #FFFFFF at 10.87:1 contrast (WCAG AA passes).

Color values

HEX#42209E
RGBrgb(66, 32, 158)
HSLhsl(256, 66%, 37%)
HSVhsv(256, 80%, 62%)
CMYKcmyk(58.2%, 79.7%, 0%, 38%)
CIE-LABlab(25.74, 47.41, -62.06)
CIE-LCHlch(25.74, 78.10, 307.38°)
OKLaboklab(38.13% 0.051 -0.1788)
OKLCHoklch(38.13% 0.186 285.9)
XYZxyz(8.9330, 4.6594, 32.7698)
Luminance0.0466 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42209E #7C9E20
analogous
#203D9E #42209E #81209E
triadic
#42209E #9E4220 #209E42
tetradic
#42209E #9E203D #7C9E20 #209E81
square
#42209E #9E203D #7C9E20 #209E81
split-complementary
#42209E #9E8120 #3D9E20
monochromatic
#170B38 #2D166B #42209E #572AD1 #7E5BDE

Accessibility & contrast

On white

10.87
#42209E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #42209E
10.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42209E#FFFFFF#000000##FFFFFF
##42209E1.0010.871.9310.87
#FFFFFF10.871.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040A1
Deuteranopia (green-blind)
#00399C
Tritanopia (blue-blind)
#12455F
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #42209e;
/* rgb */ color: rgb(66, 32, 158);
/* oklch */ color: oklch(38.1% 0.186 285.9);
Tailwind
colors: {
  custom: {
    50: '#8260bc',
    500: '#42209e',
    950: '#000000',
  },
}
SCSS
$custom: #42209e;
$custom-light: #8260bc;
$custom-dark: #000000;
JSON
{
  "hex": "#42209e",
  "rgb": {
    "r": 66,
    "g": 32,
    "b": 158
  },
  "hsl": {
    "h": 256.19,
    "s": 66.316,
    "l": 37.255
  },
  "oklch": {
    "l": 0.38127,
    "c": 0.18589,
    "h": 285.9
  },
  "luminance": 0.0466
}

Semantic roles & 50–950 ramp

primary
#42209E
secondary
#A5C258
accent
#E93FBB
background
#F8F5FB
surface
#F0EAF7
border
#CBC6D0
text
#0C0512
muted
#7D7981

Preview Lab

Preview with #42209E

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

Preview Lab → · Contrast checker → · Palette generator →

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