#32158D#32158D

#32158D is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.6% C 0.178 H 282.2°. Best body text is #FFFFFF at 12.90:1 contrast (WCAG AA passes).

Color values

HEX#32158D
RGBrgb(50, 21, 141)
HSLhsl(255, 74%, 32%)
HSVhsv(255, 85%, 55%)
CMYKcmyk(64.5%, 85.1%, 0%, 44.7%)
CIE-LABlab(20.58, 45.61, -60.14)
CIE-LCHlch(20.58, 75.48, 307.18°)
OKLaboklab(33.62% 0.0377 -0.1735)
OKLCHoklch(33.62% 0.178 282.2)
XYZxyz(6.3898, 3.1371, 25.4629)
Luminance0.0314 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#32158D #708D15
analogous
#15348D #32158D #6E158D
triadic
#32158D #8D3215 #158D32
tetradic
#32158D #8D1534 #708D15 #158D6E
square
#32158D #8D1534 #708D15 #158D6E
split-complementary
#32158D #8D6E15 #348D15
monochromatic
#0C0522 #1F0D58 #32158D #451DC2 #633BE2

Accessibility & contrast

On white

12.90
#32158D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#32158D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #32158D
12.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##32158D#FFFFFF#000000##FFFFFF
##32158D1.0012.901.6312.90
#FFFFFF12.901.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003590
Deuteranopia (green-blind)
#002D8B
Tritanopia (blue-blind)
#003B53
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #32158d;
/* rgb */ color: rgb(50, 21, 141);
/* oklch */ color: oklch(33.6% 0.178 282.2);
Tailwind
colors: {
  custom: {
    50: '#7758b0',
    500: '#32158d',
    950: '#000000',
  },
}
SCSS
$custom: #32158d;
$custom-light: #7758b0;
$custom-dark: #000000;
JSON
{
  "hex": "#32158d",
  "rgb": {
    "r": 50,
    "g": 21,
    "b": 141
  },
  "hsl": {
    "h": 254.5,
    "s": 74.074,
    "l": 31.765
  },
  "oklch": {
    "l": 0.33622,
    "c": 0.17753,
    "h": 282.2
  },
  "luminance": 0.03138
}

Semantic roles & 50–950 ramp

primary
#32158D
secondary
#A1C13D
accent
#F137C4
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #32158D

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

Preview Lab → · Contrast checker → · Palette generator →

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