#32157F#32157F

#32157F is a dark, vivid violet. Relative luminance 0.027; OKLCH L 32.1% C 0.161 H 285.3°. Best body text is #FFFFFF at 13.55:1 contrast (WCAG AA passes).

Color values

HEX#32157F
RGBrgb(50, 21, 127)
HSLhsl(256, 72%, 29%)
HSVhsv(256, 83%, 50%)
CMYKcmyk(60.6%, 83.5%, 0%, 50.2%)
CIE-LABlab(19.00, 41.52, -53.95)
CIE-LCHlch(19.00, 68.08, 307.58°)
OKLaboklab(32.06% 0.0427 -0.1554)
OKLCHoklch(32.06% 0.161 285.3)
XYZxyz(5.4132, 2.7464, 20.3194)
Luminance0.0275 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#32157F #627F15
analogous
#152D7F #32157F #67157F
triadic
#32157F #7F3215 #157F32
tetradic
#32157F #7F152D #627F15 #157F67
square
#32157F #7F152D #627F15 #157F67
split-complementary
#32157F #7F6715 #2D7F15
monochromatic
#0A041A #1D0C4A #32157F #471EB4 #6031DD

Accessibility & contrast

On white

13.55
#32157F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#32157F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #32157F
13.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##32157F#FFFFFF#000000##FFFFFF
##32157F1.0013.551.5513.55
#FFFFFF13.551.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003182
Deuteranopia (green-blind)
#002B7D
Tritanopia (blue-blind)
#05354B
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #32157f;
/* rgb */ color: rgb(50, 21, 127);
/* oklch */ color: oklch(32.1% 0.161 285.3);
Tailwind
colors: {
  custom: {
    50: '#7557a5',
    500: '#32157f',
    950: '#000000',
  },
}
SCSS
$custom: #32157f;
$custom-light: #7557a5;
$custom-dark: #000000;
JSON
{
  "hex": "#32157f",
  "rgb": {
    "r": 50,
    "g": 21,
    "b": 127
  },
  "hsl": {
    "h": 256.415,
    "s": 71.622,
    "l": 29.02
  },
  "oklch": {
    "l": 0.32061,
    "c": 0.1612,
    "h": 285.3
  },
  "luminance": 0.02747
}

Semantic roles & 50–950 ramp

primary
#32157F
secondary
#93B43C
accent
#EE39BD
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #32157F

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

Preview Lab → · Contrast checker → · Palette generator →

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