#32168E#32168E

#32168E is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.8% C 0.178 H 281.9°. Best body text is #FFFFFF at 12.80:1 contrast (WCAG AA passes).

Color values

HEX#32168E
RGBrgb(50, 22, 142)
HSLhsl(254, 73%, 32%)
HSVhsv(254, 85%, 56%)
CMYKcmyk(64.8%, 84.5%, 0%, 44.3%)
CIE-LABlab(20.84, 45.48, -60.34)
CIE-LCHlch(20.84, 75.56, 307.01°)
OKLaboklab(33.84% 0.0368 -0.1741)
OKLCHoklch(33.84% 0.178 281.9)
XYZxyz(6.4833, 3.2044, 25.8628)
Luminance0.0321 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#32168E #728E16
analogous
#16368E #32168E #6E168E
triadic
#32168E #8E3216 #168E32
tetradic
#32168E #8E1636 #728E16 #168E6E
square
#32168E #8E1636 #728E16 #168E6E
split-complementary
#32168E #8E6E16 #368E16
monochromatic
#0D0624 #1F0E59 #32168E #451EC3 #643DE1

Accessibility & contrast

On white

12.80
#32168E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#32168E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #32168E
12.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##32168E#FFFFFF#000000##FFFFFF
##32168E1.0012.801.6412.80
#FFFFFF12.801.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.801.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #32168e;
/* rgb */ color: rgb(50, 22, 142);
/* oklch */ color: oklch(33.8% 0.178 281.9);
Tailwind
colors: {
  custom: {
    50: '#7859b0',
    500: '#32168e',
    950: '#000000',
  },
}
SCSS
$custom: #32168e;
$custom-light: #7859b0;
$custom-dark: #000000;
JSON
{
  "hex": "#32168e",
  "rgb": {
    "r": 50,
    "g": 22,
    "b": 142
  },
  "hsl": {
    "h": 254,
    "s": 73.171,
    "l": 32.157
  },
  "oklch": {
    "l": 0.33835,
    "c": 0.17792,
    "h": 281.9
  },
  "luminance": 0.03205
}

Semantic roles & 50–950 ramp

primary
#32168E
secondary
#A3C13F
accent
#F038C5
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #32168E

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

Preview Lab → · Contrast checker → · Palette generator →

#32168E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva