#32158A#32158A

#32158A is a dark, vivid violet. Relative luminance 0.030; OKLCH L 33.3% C 0.174 H 282.9°. Best body text is #FFFFFF at 13.05:1 contrast (WCAG AA passes).

Color values

HEX#32158A
RGBrgb(50, 21, 138)
HSLhsl(255, 74%, 31%)
HSVhsv(255, 85%, 54%)
CMYKcmyk(63.8%, 84.8%, 0%, 45.9%)
CIE-LABlab(20.24, 44.74, -58.84)
CIE-LCHlch(20.24, 73.92, 307.25°)
OKLaboklab(33.28% 0.0387 -0.1697)
OKLCHoklch(33.28% 0.174 282.9)
XYZxyz(6.1696, 3.0490, 24.3032)
Luminance0.0305 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#32158A #6D8A15
analogous
#15328A #32158A #6C158A
triadic
#32158A #8A3215 #158A32
tetradic
#32158A #8A1532 #6D8A15 #158A6C
square
#32158A #8A1532 #6D8A15 #158A6C
split-complementary
#32158A #8A6C15 #328A15
monochromatic
#0C0520 #1F0D55 #32158A #451DBF #6239E1

Accessibility & contrast

On white

13.05
#32158A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#32158A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #32158A
13.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##32158A#FFFFFF#000000##FFFFFF
##32158A1.0013.051.6113.05
#FFFFFF13.051.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00348D
Deuteranopia (green-blind)
#002D88
Tritanopia (blue-blind)
#003A51
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #32158a;
/* rgb */ color: rgb(50, 21, 138);
/* oklch */ color: oklch(33.3% 0.174 282.9);
Tailwind
colors: {
  custom: {
    50: '#7758ad',
    500: '#32158a',
    950: '#000000',
  },
}
SCSS
$custom: #32158a;
$custom-light: #7758ad;
$custom-dark: #000000;
JSON
{
  "hex": "#32158a",
  "rgb": {
    "r": 50,
    "g": 21,
    "b": 138
  },
  "hsl": {
    "h": 254.872,
    "s": 73.585,
    "l": 31.176
  },
  "oklch": {
    "l": 0.33283,
    "c": 0.17406,
    "h": 282.9
  },
  "luminance": 0.03049
}

Semantic roles & 50–950 ramp

primary
#32158A
secondary
#9EBE3D
accent
#F038C2
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #32158A

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

Preview Lab → · Contrast checker → · Palette generator →

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