#32158F#32158F

#32158F is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.9% C 0.180 H 281.9°. Best body text is #FFFFFF at 12.81:1 contrast (WCAG AA passes).

Color values

HEX#32158F
RGBrgb(50, 21, 143)
HSLhsl(254, 74%, 32%)
HSVhsv(254, 85%, 56%)
CMYKcmyk(65%, 85.3%, 0%, 43.9%)
CIE-LABlab(20.82, 46.19, -61.01)
CIE-LCHlch(20.82, 76.52, 307.13°)
OKLaboklab(33.85% 0.0369 -0.176)
OKLCHoklch(33.85% 0.18 281.9)
XYZxyz(6.5399, 3.1971, 26.2537)
Luminance0.0320 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#32158F #728F15
analogous
#15358F #32158F #6F158F
triadic
#32158F #8F3215 #158F32
tetradic
#32158F #8F1535 #728F15 #158F6F
square
#32158F #8F1535 #728F15 #158F6F
split-complementary
#32158F #8F6F15 #358F15
monochromatic
#0D0524 #1F0D5A #32158F #451DC4 #643CE2

Accessibility & contrast

On white

12.81
#32158F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#32158F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #32158F
12.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##32158F#FFFFFF#000000##FFFFFF
##32158F1.0012.811.6412.81
#FFFFFF12.811.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003692
Deuteranopia (green-blind)
#002E8D
Tritanopia (blue-blind)
#003C54
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #32158f;
/* rgb */ color: rgb(50, 21, 143);
/* oklch */ color: oklch(33.9% 0.180 281.9);
Tailwind
colors: {
  custom: {
    50: '#7859b1',
    500: '#32158f',
    950: '#000000',
  },
}
SCSS
$custom: #32158f;
$custom-light: #7859b1;
$custom-dark: #000000;
JSON
{
  "hex": "#32158f",
  "rgb": {
    "r": 50,
    "g": 21,
    "b": 143
  },
  "hsl": {
    "h": 254.262,
    "s": 74.39,
    "l": 32.157
  },
  "oklch": {
    "l": 0.3385,
    "c": 0.17983,
    "h": 281.9
  },
  "luminance": 0.03198
}

Semantic roles & 50–950 ramp

primary
#32158F
secondary
#A3C23E
accent
#F137C5
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #32158F

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

Preview Lab → · Contrast checker → · Palette generator →

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