#32157E#32157E

#32157E is a dark, vivid violet. Relative luminance 0.027; OKLCH L 32.0% C 0.160 H 285.6°. Best body text is #FFFFFF at 13.60:1 contrast (WCAG AA passes).

Color values

HEX#32157E
RGBrgb(50, 21, 126)
HSLhsl(257, 71%, 29%)
HSVhsv(257, 83%, 49%)
CMYKcmyk(60.3%, 83.3%, 0%, 50.6%)
CIE-LABlab(18.89, 41.22, -53.50)
CIE-LCHlch(18.89, 67.54, 307.62°)
OKLaboklab(31.95% 0.043 -0.1541)
OKLCHoklch(31.95% 0.16 285.6)
XYZxyz(5.3483, 2.7205, 19.9779)
Luminance0.0272 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#32157E #617E15
analogous
#152D7E #32157E #67157E
triadic
#32157E #7E3215 #157E32
tetradic
#32157E #7E152D #617E15 #157E67
square
#32157E #7E152D #617E15 #157E67
split-complementary
#32157E #7E6715 #2D7E15
monochromatic
#0A041A #1D0C4A #32157E #471EB2 #6031DD

Accessibility & contrast

On white

13.60
#32157E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#32157E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #32157E
13.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##32157E#FFFFFF#000000##FFFFFF
##32157E1.0013.601.5413.60
#FFFFFF13.601.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003181
Deuteranopia (green-blind)
#002B7C
Tritanopia (blue-blind)
#07354A
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #32157e;
/* rgb */ color: rgb(50, 21, 126);
/* oklch */ color: oklch(32.0% 0.160 285.6);
Tailwind
colors: {
  custom: {
    50: '#7457a4',
    500: '#32157e',
    950: '#000000',
  },
}
SCSS
$custom: #32157e;
$custom-light: #7457a4;
$custom-dark: #000000;
JSON
{
  "hex": "#32157e",
  "rgb": {
    "r": 50,
    "g": 21,
    "b": 126
  },
  "hsl": {
    "h": 256.571,
    "s": 71.429,
    "l": 28.824
  },
  "oklch": {
    "l": 0.31952,
    "c": 0.16001,
    "h": 285.6
  },
  "luminance": 0.02721
}

Semantic roles & 50–950 ramp

primary
#32157E
secondary
#92B33C
accent
#EE3ABC
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #32157E

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

Preview Lab → · Contrast checker → · Palette generator →

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