#42209B#42209B

#42209B is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.8% C 0.182 H 286.5°. Best body text is #FFFFFF at 10.99:1 contrast (WCAG AA passes).

Color values

HEX#42209B
RGBrgb(66, 32, 155)
HSLhsl(257, 66%, 37%)
HSVhsv(257, 79%, 61%)
CMYKcmyk(57.4%, 79.4%, 0%, 39.2%)
CIE-LABlab(25.43, 46.55, -60.73)
CIE-LCHlch(25.43, 76.52, 307.47°)
OKLaboklab(37.82% 0.0519 -0.1749)
OKLCHoklch(37.82% 0.182 286.5)
XYZxyz(8.6779, 4.5573, 31.4264)
Luminance0.0456 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42209B #799B20
analogous
#203C9B #42209B #80209B
triadic
#42209B #9B4220 #209B42
tetradic
#42209B #9B203C #799B20 #209B80
square
#42209B #9B203C #799B20 #209B80
split-complementary
#42209B #9B8020 #3C9B20
monochromatic
#170B36 #2C1668 #42209B #582ACE #7D59DD

Accessibility & contrast

On white

10.99
#42209B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#42209B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42209B
10.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42209B#FFFFFF#000000##FFFFFF
##42209B1.0010.991.9110.99
#FFFFFF10.991.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F9E
Deuteranopia (green-blind)
#003999
Tritanopia (blue-blind)
#17445D
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #42209b;
/* rgb */ color: rgb(66, 32, 155);
/* oklch */ color: oklch(37.8% 0.182 286.5);
Tailwind
colors: {
  custom: {
    50: '#8160ba',
    500: '#42209b',
    950: '#000000',
  },
}
SCSS
$custom: #42209b;
$custom-light: #8160ba;
$custom-dark: #000000;
JSON
{
  "hex": "#42209b",
  "rgb": {
    "r": 66,
    "g": 32,
    "b": 155
  },
  "hsl": {
    "h": 256.585,
    "s": 65.775,
    "l": 36.667
  },
  "oklch": {
    "l": 0.37821,
    "c": 0.18242,
    "h": 286.5
  },
  "luminance": 0.04558
}

Semantic roles & 50–950 ramp

primary
#42209B
secondary
#A3C156
accent
#E93FBA
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #42209B

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

Preview Lab → · Contrast checker → · Palette generator →

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