#32168D#32168D

#32168D is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.7% C 0.177 H 282.1°. Best body text is #FFFFFF at 12.84:1 contrast (WCAG AA passes).

Color values

HEX#32168D
RGBrgb(50, 22, 141)
HSLhsl(254, 73%, 32%)
HSVhsv(254, 84%, 55%)
CMYKcmyk(64.5%, 84.4%, 0%, 44.7%)
CIE-LABlab(20.73, 45.19, -59.90)
CIE-LCHlch(20.73, 75.04, 307.03°)
OKLaboklab(33.72% 0.0372 -0.1728)
OKLCHoklch(33.72% 0.177 282.1)
XYZxyz(6.4085, 3.1745, 25.4692)
Luminance0.0318 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#32168D #718D16
analogous
#16358D #32168D #6E168D
triadic
#32168D #8D3216 #168D32
tetradic
#32168D #8D1635 #718D16 #168D6E
square
#32168D #8D1635 #718D16 #168D6E
split-complementary
#32168D #8D6E16 #358D16
monochromatic
#0C0523 #1F0E58 #32168D #451EC2 #633DE1

Accessibility & contrast

On white

12.84
#32168D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #32168D
12.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##32168D#FFFFFF#000000##FFFFFF
##32168D1.0012.841.6412.84
#FFFFFF12.841.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.841.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #32168d;
/* rgb */ color: rgb(50, 22, 141);
/* oklch */ color: oklch(33.7% 0.177 282.1);
Tailwind
colors: {
  custom: {
    50: '#7759b0',
    500: '#32168d',
    950: '#000000',
  },
}
SCSS
$custom: #32168d;
$custom-light: #7759b0;
$custom-dark: #000000;
JSON
{
  "hex": "#32168d",
  "rgb": {
    "r": 50,
    "g": 22,
    "b": 141
  },
  "hsl": {
    "h": 254.118,
    "s": 73.006,
    "l": 31.961
  },
  "oklch": {
    "l": 0.33722,
    "c": 0.17675,
    "h": 282.1
  },
  "luminance": 0.03175
}

Semantic roles & 50–950 ramp

primary
#32168D
secondary
#A2C13E
accent
#F038C4
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #32168D

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

Preview Lab → · Contrast checker → · Palette generator →

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