#42209C#42209C

#42209C is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.9% C 0.184 H 286.3°. Best body text is #FFFFFF at 10.95:1 contrast (WCAG AA passes).

Color values

HEX#42209C
RGBrgb(66, 32, 156)
HSLhsl(256, 66%, 37%)
HSVhsv(256, 79%, 61%)
CMYKcmyk(57.7%, 79.5%, 0%, 38.8%)
CIE-LABlab(25.54, 46.83, -61.18)
CIE-LCHlch(25.54, 77.05, 307.44°)
OKLaboklab(37.92% 0.0516 -0.1762)
OKLCHoklch(37.92% 0.184 286.3)
XYZxyz(8.7622, 4.5911, 31.8705)
Luminance0.0459 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42209C #7A9C20
analogous
#203C9C #42209C #80209C
triadic
#42209C #9C4220 #209C42
tetradic
#42209C #9C203C #7A9C20 #209C80
square
#42209C #9C203C #7A9C20 #209C80
split-complementary
#42209C #9C8020 #3C9C20
monochromatic
#170B36 #2D1669 #42209C #572ACF #7D59DD

Accessibility & contrast

On white

10.95
#42209C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#42209C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42209C
10.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42209C#FFFFFF#000000##FFFFFF
##42209C1.0010.951.9210.95
#FFFFFF10.951.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00409F
Deuteranopia (green-blind)
#00399A
Tritanopia (blue-blind)
#16445E
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #42209c;
/* rgb */ color: rgb(66, 32, 156);
/* oklch */ color: oklch(37.9% 0.184 286.3);
Tailwind
colors: {
  custom: {
    50: '#8160ba',
    500: '#42209c',
    950: '#000000',
  },
}
SCSS
$custom: #42209c;
$custom-light: #8160ba;
$custom-dark: #000000;
JSON
{
  "hex": "#42209c",
  "rgb": {
    "r": 66,
    "g": 32,
    "b": 156
  },
  "hsl": {
    "h": 256.452,
    "s": 65.957,
    "l": 36.863
  },
  "oklch": {
    "l": 0.37923,
    "c": 0.18358,
    "h": 286.3
  },
  "luminance": 0.04592
}

Semantic roles & 50–950 ramp

primary
#42209C
secondary
#A4C157
accent
#E93FBA
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0C0512
muted
#7D7981

Preview Lab

Preview with #42209C

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

Preview Lab → · Contrast checker → · Palette generator →

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