#57187B#57187B

#57187B is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.5% C 0.158 H 309.4°. Best body text is #FFFFFF at 11.53:1 contrast (WCAG AA passes).

Color values

HEX#57187B
RGBrgb(87, 24, 123)
HSLhsl(278, 67%, 29%)
HSVhsv(278, 80%, 48%)
CMYKcmyk(29.3%, 80.5%, 0%, 51.8%)
CIE-LABlab(24.03, 45.03, -42.97)
CIE-LCHlch(24.03, 62.24, 316.34°)
OKLaboklab(36.54% 0.1003 -0.122)
OKLCHoklch(36.54% 0.158 309.4)
XYZxyz(7.8315, 4.1097, 19.1157)
Luminance0.0411 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#57187B #3C7B18
analogous
#26187B #57187B #7B186E
triadic
#57187B #7B5718 #187B57
tetradic
#57187B #7B2618 #3C7B18 #186E7B
square
#57187B #7B2618 #3C7B18 #186E7B
split-complementary
#57187B #6E7B18 #187B26
monochromatic
#12051A #330E48 #57187B #7B22AE #9D36D8

Accessibility & contrast

On white

11.53
#57187B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#57187B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #57187B
11.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##57187B#FFFFFF#000000##FFFFFF
##57187B1.0011.531.8211.53
#FFFFFF11.531.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377E
Deuteranopia (green-blind)
#003A79
Tritanopia (blue-blind)
#523149
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #57187b;
/* rgb */ color: rgb(87, 24, 123);
/* oklch */ color: oklch(36.5% 0.158 309.4);
Tailwind
colors: {
  custom: {
    50: '#8b5da2',
    500: '#57187b',
    950: '#000000',
  },
}
SCSS
$custom: #57187b;
$custom-light: #8b5da2;
$custom-dark: #000000;
JSON
{
  "hex": "#57187b",
  "rgb": {
    "r": 87,
    "g": 24,
    "b": 123
  },
  "hsl": {
    "h": 278.182,
    "s": 67.347,
    "l": 28.824
  },
  "oklch": {
    "l": 0.36543,
    "c": 0.15789,
    "h": 309.4
  },
  "luminance": 0.0411
}

Semantic roles & 50–950 ramp

primary
#57187B
secondary
#68B03F
accent
#EA3E7C
background
#F8F5FA
surface
#F0E9F3
border
#CBC5CD
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #57187B

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

Preview Lab → · Contrast checker → · Palette generator →

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