#42159F#42159F

#42159F is a dark, vivid violet. Relative luminance 0.042; OKLCH L 37.2% C 0.196 H 286.9°. Best body text is #FFFFFF at 11.42:1 contrast (WCAG AA passes).

Color values

HEX#42159F
RGBrgb(66, 21, 159)
HSLhsl(260, 77%, 35%)
HSVhsv(260, 87%, 62%)
CMYKcmyk(58.5%, 86.8%, 0%, 37.6%)
CIE-LABlab(24.31, 52.18, -65.03)
CIE-LCHlch(24.31, 83.38, 308.75°)
OKLaboklab(37.18% 0.0569 -0.1873)
OKLCHoklch(37.18% 0.196 286.9)
XYZxyz(8.7711, 4.1973, 33.1421)
Luminance0.0420 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42159F #729F15
analogous
#152D9F #42159F #87159F
triadic
#42159F #9F4215 #159F42
tetradic
#42159F #9F152D #729F15 #159F87
square
#42159F #9F152D #729F15 #159F87
split-complementary
#42159F #9F8715 #2D9F15
monochromatic
#150733 #2C0E69 #42159F #581CD5 #7C48E7

Accessibility & contrast

On white

11.42
#42159F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#42159F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42159F
11.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42159F#FFFFFF#000000##FFFFFF
##42159F1.0011.421.8411.42
#FFFFFF11.421.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003DA3
Deuteranopia (green-blind)
#00369D
Tritanopia (blue-blind)
#12425E
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #42159f;
/* rgb */ color: rgb(66, 21, 159);
/* oklch */ color: oklch(37.2% 0.196 286.9);
Tailwind
colors: {
  custom: {
    50: '#835cbd',
    500: '#42159f',
    950: '#000000',
  },
}
SCSS
$custom: #42159f;
$custom-light: #835cbd;
$custom-dark: #000000;
JSON
{
  "hex": "#42159f",
  "rgb": {
    "r": 66,
    "g": 21,
    "b": 159
  },
  "hsl": {
    "h": 259.565,
    "s": 76.667,
    "l": 35.294
  },
  "oklch": {
    "l": 0.37175,
    "c": 0.19573,
    "h": 286.9
  },
  "luminance": 0.04198
}

Semantic roles & 50–950 ramp

primary
#42159F
secondary
#9EC848
accent
#F335B5
background
#F8F5FB
surface
#F0E9F7
border
#CBC5D0
text
#0C0412
muted
#7D7981

Preview Lab

Preview with #42159F

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

Preview Lab → · Contrast checker → · Palette generator →

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