#32178C#32178C

#32178C is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.7% C 0.175 H 282.2°. Best body text is #FFFFFF at 12.83:1 contrast (WCAG AA passes).

Color values

HEX#32178C
RGBrgb(50, 23, 140)
HSLhsl(254, 72%, 32%)
HSVhsv(254, 84%, 55%)
CMYKcmyk(64.3%, 83.6%, 0%, 45.1%)
CIE-LABlab(20.77, 44.45, -59.22)
CIE-LCHlch(20.77, 74.05, 306.89°)
OKLaboklab(33.71% 0.037 -0.1708)
OKLCHoklch(33.71% 0.175 282.2)
XYZxyz(6.3539, 3.1839, 25.0856)
Luminance0.0318 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#32178C #718C17
analogous
#17378C #32178C #6D178C
triadic
#32178C #8C3217 #178C32
tetradic
#32178C #8C1737 #718C17 #178C6D
square
#32178C #8C1737 #718C17 #178C6D
split-complementary
#32178C #8C6D17 #378C17
monochromatic
#0C0623 #1F0E57 #32178C #4520C1 #633EDF

Accessibility & contrast

On white

12.83
#32178C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #32178C
12.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##32178C#FFFFFF#000000##FFFFFF
##32178C1.0012.831.6412.83
#FFFFFF12.831.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00368F
Deuteranopia (green-blind)
#002E8A
Tritanopia (blue-blind)
#003B53
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #32178c;
/* rgb */ color: rgb(50, 23, 140);
/* oklch */ color: oklch(33.7% 0.175 282.2);
Tailwind
colors: {
  custom: {
    50: '#7759af',
    500: '#32178c',
    950: '#000000',
  },
}
SCSS
$custom: #32178c;
$custom-light: #7759af;
$custom-dark: #000000;
JSON
{
  "hex": "#32178c",
  "rgb": {
    "r": 50,
    "g": 23,
    "b": 140
  },
  "hsl": {
    "h": 253.846,
    "s": 71.779,
    "l": 31.961
  },
  "oklch": {
    "l": 0.33713,
    "c": 0.17479,
    "h": 282.2
  },
  "luminance": 0.03184
}

Semantic roles & 50–950 ramp

primary
#32178C
secondary
#A2BF3F
accent
#EF39C5
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #32178C

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

Preview Lab → · Contrast checker → · Palette generator →

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