#32157C#32157C

#32157C is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.7% C 0.158 H 286.1°. Best body text is #FFFFFF at 13.69:1 contrast (WCAG AA passes).

Color values

HEX#32157C
RGBrgb(50, 21, 124)
HSLhsl(257, 71%, 28%)
HSVhsv(257, 83%, 49%)
CMYKcmyk(59.7%, 83.1%, 0%, 51.4%)
CIE-LABlab(18.67, 40.63, -52.58)
CIE-LCHlch(18.67, 66.45, 307.69°)
OKLaboklab(31.73% 0.0437 -0.1515)
OKLCHoklch(31.73% 0.158 286.1)
XYZxyz(5.2206, 2.6694, 19.3050)
Luminance0.0267 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#32157C #5F7C15
analogous
#152B7C #32157C #65157C
triadic
#32157C #7C3215 #157C32
tetradic
#32157C #7C152B #5F7C15 #157C65
square
#32157C #7C152B #5F7C15 #157C65
split-complementary
#32157C #7C6515 #2B7C15
monochromatic
#0B041A #1D0C48 #32157C #471EB0 #6030DC

Accessibility & contrast

On white

13.69
#32157C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #32157C
13.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##32157C#FFFFFF#000000##FFFFFF
##32157C1.0013.691.5313.69
#FFFFFF13.691.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00307F
Deuteranopia (green-blind)
#002A7A
Tritanopia (blue-blind)
#0B3449
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #32157c;
/* rgb */ color: rgb(50, 21, 124);
/* oklch */ color: oklch(31.7% 0.158 286.1);
Tailwind
colors: {
  custom: {
    50: '#7457a3',
    500: '#32157c',
    950: '#000000',
  },
}
SCSS
$custom: #32157c;
$custom-light: #7457a3;
$custom-dark: #000000;
JSON
{
  "hex": "#32157c",
  "rgb": {
    "r": 50,
    "g": 21,
    "b": 124
  },
  "hsl": {
    "h": 256.893,
    "s": 71.034,
    "l": 28.431
  },
  "oklch": {
    "l": 0.31734,
    "c": 0.15765,
    "h": 286.1
  },
  "luminance": 0.0267
}

Semantic roles & 50–950 ramp

primary
#32157C
secondary
#90B13C
accent
#EE3ABB
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #32157C

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

Preview Lab → · Contrast checker → · Palette generator →

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