#32157B#32157B

#32157B is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.6% C 0.156 H 286.4°. Best body text is #FFFFFF at 13.73:1 contrast (WCAG AA passes).

Color values

HEX#32157B
RGBrgb(50, 21, 123)
HSLhsl(257, 71%, 28%)
HSVhsv(257, 83%, 48%)
CMYKcmyk(59.3%, 82.9%, 0%, 51.8%)
CIE-LABlab(18.56, 40.34, -52.13)
CIE-LCHlch(18.56, 65.91, 307.73°)
OKLaboklab(31.63% 0.0441 -0.1501)
OKLCHoklch(31.63% 0.156 286.4)
XYZxyz(5.1576, 2.6442, 18.9737)
Luminance0.0265 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#32157B #5E7B15
analogous
#152B7B #32157B #65157B
triadic
#32157B #7B3215 #157B32
tetradic
#32157B #7B152B #5E7B15 #157B65
square
#32157B #7B152B #5E7B15 #157B65
split-complementary
#32157B #7B6515 #2B7B15
monochromatic
#0B041A #1D0C47 #32157B #471EAF #602FDB

Accessibility & contrast

On white

13.73
#32157B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#32157B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #32157B
13.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##32157B#FFFFFF#000000##FFFFFF
##32157B1.0013.731.5313.73
#FFFFFF13.731.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00307E
Deuteranopia (green-blind)
#002A79
Tritanopia (blue-blind)
#0D3348
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #32157b;
/* rgb */ color: rgb(50, 21, 123);
/* oklch */ color: oklch(31.6% 0.156 286.4);
Tailwind
colors: {
  custom: {
    50: '#7457a2',
    500: '#32157b',
    950: '#000000',
  },
}
SCSS
$custom: #32157b;
$custom-light: #7457a2;
$custom-dark: #000000;
JSON
{
  "hex": "#32157b",
  "rgb": {
    "r": 50,
    "g": 21,
    "b": 123
  },
  "hsl": {
    "h": 257.059,
    "s": 70.833,
    "l": 28.235
  },
  "oklch": {
    "l": 0.31626,
    "c": 0.15646,
    "h": 286.4
  },
  "luminance": 0.02645
}

Semantic roles & 50–950 ramp

primary
#32157B
secondary
#8FB03B
accent
#EE3ABB
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #32157B

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

Preview Lab → · Contrast checker → · Palette generator →

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