#32117E#32117E

#32117E is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.5% C 0.163 H 286.1°. Best body text is #FFFFFF at 13.84:1 contrast (WCAG AA passes).

Color values

HEX#32117E
RGBrgb(50, 17, 126)
HSLhsl(258, 76%, 28%)
HSVhsv(258, 87%, 49%)
CMYKcmyk(60.3%, 86.5%, 0%, 50.6%)
CIE-LABlab(18.30, 42.95, -54.47)
CIE-LCHlch(18.30, 69.36, 308.26°)
OKLaboklab(31.55% 0.0454 -0.1569)
OKLCHoklch(31.55% 0.163 286.1)
XYZxyz(5.2806, 2.5850, 19.9553)
Luminance0.0259 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#32117E #5D7E11
analogous
#11267E #32117E #68117E
triadic
#32117E #7E3211 #117E32
tetradic
#32117E #7E1126 #5D7E11 #117E68
square
#32117E #7E1126 #5D7E11 #117E68
split-complementary
#32117E #7E6811 #267E11
monochromatic
#0B041B #1D0A48 #32117E #4718B4 #6027E2

Accessibility & contrast

On white

13.84
#32117E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#32117E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #32117E
13.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##32117E#FFFFFF#000000##FFFFFF
##32117E1.0013.841.5213.84
#FFFFFF13.841.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F81
Deuteranopia (green-blind)
#00297C
Tritanopia (blue-blind)
#083349
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #32117e;
/* rgb */ color: rgb(50, 17, 126);
/* oklch */ color: oklch(31.5% 0.163 286.1);
Tailwind
colors: {
  custom: {
    50: '#7555a5',
    500: '#32117e',
    950: '#000000',
  },
}
SCSS
$custom: #32117e;
$custom-light: #7555a5;
$custom-dark: #000000;
JSON
{
  "hex": "#32117e",
  "rgb": {
    "r": 50,
    "g": 17,
    "b": 126
  },
  "hsl": {
    "h": 258.165,
    "s": 76.224,
    "l": 28.039
  },
  "oklch": {
    "l": 0.31546,
    "c": 0.16334,
    "h": 286.1
  },
  "luminance": 0.02585
}

Semantic roles & 50–950 ramp

primary
#32117E
secondary
#8EB437
accent
#F335B9
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #32117E

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

Preview Lab → · Contrast checker → · Palette generator →

#32117E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva