#32178D#32178D

#32178D is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.8% C 0.176 H 282.0°. Best body text is #FFFFFF at 12.78:1 contrast (WCAG AA passes).

Color values

HEX#32178D
RGBrgb(50, 23, 141)
HSLhsl(254, 72%, 32%)
HSVhsv(254, 84%, 55%)
CMYKcmyk(64.5%, 83.7%, 0%, 44.7%)
CIE-LABlab(20.88, 44.75, -59.65)
CIE-LCHlch(20.88, 74.57, 306.87°)
OKLaboklab(33.83% 0.0367 -0.1721)
OKLCHoklch(33.83% 0.176 282)
XYZxyz(6.4280, 3.2135, 25.4757)
Luminance0.0321 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#32178D #728D17
analogous
#17378D #32178D #6D178D
triadic
#32178D #8D3217 #178D32
tetradic
#32178D #8D1737 #728D17 #178D6D
square
#32178D #8D1737 #728D17 #178D6D
split-complementary
#32178D #8D6D17 #378D17
monochromatic
#0D0624 #1F0E58 #32178D #4520C2 #643FE0

Accessibility & contrast

On white

12.78
#32178D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #32178D
12.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##32178D#FFFFFF#000000##FFFFFF
##32178D1.0012.781.6412.78
#FFFFFF12.781.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.781.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #32178d;
/* rgb */ color: rgb(50, 23, 141);
/* oklch */ color: oklch(33.8% 0.176 282.0);
Tailwind
colors: {
  custom: {
    50: '#7759b0',
    500: '#32178d',
    950: '#000000',
  },
}
SCSS
$custom: #32178d;
$custom-light: #7759b0;
$custom-dark: #000000;
JSON
{
  "hex": "#32178d",
  "rgb": {
    "r": 50,
    "g": 23,
    "b": 141
  },
  "hsl": {
    "h": 253.729,
    "s": 71.951,
    "l": 32.157
  },
  "oklch": {
    "l": 0.33825,
    "c": 0.17596,
    "h": 282
  },
  "luminance": 0.03214
}

Semantic roles & 50–950 ramp

primary
#32178D
secondary
#A3C040
accent
#EF39C5
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #32178D

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

Preview Lab → · Contrast checker → · Palette generator →

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