#32174C#32174C

#32174C is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.4% C 0.095 H 304.3°. Best body text is #FFFFFF at 15.41:1 contrast (WCAG AA passes).

Color values

HEX#32174C
RGBrgb(50, 23, 76)
HSLhsl(271, 54%, 19%)
HSVhsv(271, 70%, 30%)
CMYKcmyk(34.2%, 69.7%, 0%, 70.2%)
CIE-LABlab(14.47, 25.36, -27.70)
CIE-LCHlch(14.47, 37.56, 312.47°)
OKLaboklab(27.37% 0.0535 -0.0785)
OKLCHoklch(27.37% 0.095 304.3)
XYZxyz(2.9260, 1.8127, 7.0318)
Luminance0.0181 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#32174C #314C17
analogous
#18174C #32174C #4C174C
triadic
#32174C #4C3217 #174C32
tetradic
#32174C #4C1817 #314C17 #174C4C
square
#32174C #4C1817 #314C17 #174C4C
split-complementary
#32174C #4C4C17 #174C18
monochromatic
#0F0717 #13091D #32174C #51257B #7033AA

Accessibility & contrast

On white

15.41
#32174C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#32174C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #32174C
15.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##32174C#FFFFFF#000000##FFFFFF
##32174C1.0015.411.3615.41
#FFFFFF15.411.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00244E
Deuteranopia (green-blind)
#09254B
Tritanopia (blue-blind)
#2D222F
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #32174c;
/* rgb */ color: rgb(50, 23, 76);
/* oklch */ color: oklch(27.4% 0.095 304.3);
Tailwind
colors: {
  custom: {
    50: '#6c567e',
    500: '#32174c',
    950: '#000000',
  },
}
SCSS
$custom: #32174c;
$custom-light: #6c567e;
$custom-dark: #000000;
JSON
{
  "hex": "#32174c",
  "rgb": {
    "r": 50,
    "g": 23,
    "b": 76
  },
  "hsl": {
    "h": 270.566,
    "s": 53.535,
    "l": 19.412
  },
  "oklch": {
    "l": 0.27366,
    "c": 0.09497,
    "h": 304.3
  },
  "luminance": 0.01813
}

Semantic roles & 50–950 ramp

primary
#32174C
secondary
#5F833C
accent
#DD4B93
background
#F6F5F7
surface
#ECE9EE
border
#C7C5C9
text
#07030A
muted
#7A787C

Preview Lab

Preview with #32174C

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

Preview Lab → · Contrast checker → · Palette generator →

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