#32157A#32157A

#32157A is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.5% C 0.155 H 286.6°. Best body text is #FFFFFF at 13.78:1 contrast (WCAG AA passes).

Color values

HEX#32157A
RGBrgb(50, 21, 122)
HSLhsl(257, 71%, 28%)
HSVhsv(257, 83%, 48%)
CMYKcmyk(59%, 82.8%, 0%, 52.2%)
CIE-LABlab(18.45, 40.04, -51.67)
CIE-LCHlch(18.45, 65.37, 307.77°)
OKLaboklab(31.52% 0.0444 -0.1488)
OKLCHoklch(31.52% 0.155 286.6)
XYZxyz(5.0954, 2.6193, 18.6457)
Luminance0.0262 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#32157A #5D7A15
analogous
#152A7A #32157A #64157A
triadic
#32157A #7A3215 #157A32
tetradic
#32157A #7A152A #5D7A15 #157A64
square
#32157A #7A152A #5D7A15 #157A64
split-complementary
#32157A #7A6415 #2A7A15
monochromatic
#0B041A #1D0C46 #32157A #471EAE #602EDB

Accessibility & contrast

On white

13.78
#32157A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#32157A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #32157A
13.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##32157A#FFFFFF#000000##FFFFFF
##32157A1.0013.781.5213.78
#FFFFFF13.781.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F7D
Deuteranopia (green-blind)
#002A78
Tritanopia (blue-blind)
#0F3348
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #32157a;
/* rgb */ color: rgb(50, 21, 122);
/* oklch */ color: oklch(31.5% 0.155 286.6);
Tailwind
colors: {
  custom: {
    50: '#7457a1',
    500: '#32157a',
    950: '#000000',
  },
}
SCSS
$custom: #32157a;
$custom-light: #7457a1;
$custom-dark: #000000;
JSON
{
  "hex": "#32157a",
  "rgb": {
    "r": 50,
    "g": 21,
    "b": 122
  },
  "hsl": {
    "h": 257.228,
    "s": 70.629,
    "l": 28.039
  },
  "oklch": {
    "l": 0.31518,
    "c": 0.15527,
    "h": 286.6
  },
  "luminance": 0.0262
}

Semantic roles & 50–950 ramp

primary
#32157A
secondary
#8EAF3B
accent
#ED3ABA
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #32157A

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

Preview Lab → · Contrast checker → · Palette generator →

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