#42209F#42209F

#42209F is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.2% C 0.187 H 285.7°. Best body text is #FFFFFF at 10.83:1 contrast (WCAG AA passes).

Color values

HEX#42209F
RGBrgb(66, 32, 159)
HSLhsl(256, 66%, 37%)
HSVhsv(256, 80%, 62%)
CMYKcmyk(58.5%, 79.9%, 0%, 37.6%)
CIE-LABlab(25.84, 47.70, -62.50)
CIE-LCHlch(25.84, 78.62, 307.35°)
OKLaboklab(38.23% 0.0507 -0.18)
OKLCHoklch(38.23% 0.187 285.7)
XYZxyz(9.0194, 4.6939, 33.2249)
Luminance0.0469 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42209F #7D9F20
analogous
#203E9F #42209F #82209F
triadic
#42209F #9F4220 #209F42
tetradic
#42209F #9F203E #7D9F20 #209F82
square
#42209F #9F203E #7D9F20 #209F82
split-complementary
#42209F #9F8220 #3E9F20
monochromatic
#180B39 #2D166C #42209F #572AD2 #7E5BDE

Accessibility & contrast

On white

10.83
#42209F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#42209F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42209F
10.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42209F#FFFFFF#000000##FFFFFF
##42209F1.0010.831.9410.83
#FFFFFF10.831.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040A3
Deuteranopia (green-blind)
#00399D
Tritanopia (blue-blind)
#10455F
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #42209f;
/* rgb */ color: rgb(66, 32, 159);
/* oklch */ color: oklch(38.2% 0.187 285.7);
Tailwind
colors: {
  custom: {
    50: '#8261bd',
    500: '#42209f',
    950: '#000000',
  },
}
SCSS
$custom: #42209f;
$custom-light: #8261bd;
$custom-dark: #000000;
JSON
{
  "hex": "#42209f",
  "rgb": {
    "r": 66,
    "g": 32,
    "b": 159
  },
  "hsl": {
    "h": 256.063,
    "s": 66.492,
    "l": 37.451
  },
  "oklch": {
    "l": 0.3823,
    "c": 0.18704,
    "h": 285.7
  },
  "luminance": 0.04694
}

Semantic roles & 50–950 ramp

primary
#42209F
secondary
#A6C259
accent
#E93EBC
background
#F8F5FB
surface
#F0EAF7
border
#CBC6D0
text
#0C0512
muted
#7D7981

Preview Lab

Preview with #42209F

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

Preview Lab → · Contrast checker → · Palette generator →

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