#32178F#32178F

#32178F is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.1% C 0.178 H 281.6°. Best body text is #FFFFFF at 12.69:1 contrast (WCAG AA passes).

Color values

HEX#32178F
RGBrgb(50, 23, 143)
HSLhsl(254, 72%, 33%)
HSVhsv(254, 84%, 56%)
CMYKcmyk(65%, 83.9%, 0%, 43.9%)
CIE-LABlab(21.11, 45.34, -60.52)
CIE-LCHlch(21.11, 75.62, 306.84°)
OKLaboklab(34.05% 0.036 -0.1746)
OKLCHoklch(34.05% 0.178 281.6)
XYZxyz(6.5782, 3.2736, 26.2665)
Luminance0.0327 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#32178F #748F17
analogous
#17388F #32178F #6E178F
triadic
#32178F #8F3217 #178F32
tetradic
#32178F #8F1738 #748F17 #178F6E
square
#32178F #8F1738 #748F17 #178F6E
split-complementary
#32178F #8F6E17 #388F17
monochromatic
#0D0626 #200F5A #32178F #441FC4 #6440E0

Accessibility & contrast

On white

12.69
#32178F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#32178F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #32178F
12.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##32178F#FFFFFF#000000##FFFFFF
##32178F1.0012.691.6512.69
#FFFFFF12.691.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003792
Deuteranopia (green-blind)
#002E8D
Tritanopia (blue-blind)
#003D54
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #32178f;
/* rgb */ color: rgb(50, 23, 143);
/* oklch */ color: oklch(34.1% 0.178 281.6);
Tailwind
colors: {
  custom: {
    50: '#785ab1',
    500: '#32178f',
    950: '#000000',
  },
}
SCSS
$custom: #32178f;
$custom-light: #785ab1;
$custom-dark: #000000;
JSON
{
  "hex": "#32178f",
  "rgb": {
    "r": 50,
    "g": 23,
    "b": 143
  },
  "hsl": {
    "h": 253.5,
    "s": 72.289,
    "l": 32.549
  },
  "oklch": {
    "l": 0.3405,
    "c": 0.17829,
    "h": 281.6
  },
  "luminance": 0.03274
}

Semantic roles & 50–950 ramp

primary
#32178F
secondary
#A4C141
accent
#EF39C6
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #32178F

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

Preview Lab → · Contrast checker → · Palette generator →

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