#57187C#57187C

#57187C is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.6% C 0.159 H 309.0°. Best body text is #FFFFFF at 11.49:1 contrast (WCAG AA passes).

Color values

HEX#57187C
RGBrgb(87, 24, 124)
HSLhsl(278, 68%, 29%)
HSVhsv(278, 81%, 49%)
CMYKcmyk(29.8%, 80.6%, 0%, 51.4%)
CIE-LABlab(24.11, 45.26, -43.47)
CIE-LCHlch(24.11, 62.75, 316.15°)
OKLaboklab(36.63% 0.1001 -0.1234)
OKLCHoklch(36.63% 0.159 309)
XYZxyz(7.8945, 4.1349, 19.4471)
Luminance0.0413 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#57187C #3D7C18
analogous
#25187C #57187C #7C186F
triadic
#57187C #7C5718 #187C57
tetradic
#57187C #7C2518 #3D7C18 #186F7C
square
#57187C #7C2518 #3D7C18 #186F7C
split-complementary
#57187C #6F7C18 #187C25
monochromatic
#12051A #330E49 #57187C #7B22AF #9C36D8

Accessibility & contrast

On white

11.49
#57187C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#57187C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #57187C
11.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##57187C#FFFFFF#000000##FFFFFF
##57187C1.0011.491.8311.49
#FFFFFF11.491.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377F
Deuteranopia (green-blind)
#003A7A
Tritanopia (blue-blind)
#51314A
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #57187c;
/* rgb */ color: rgb(87, 24, 124);
/* oklch */ color: oklch(36.6% 0.159 309.0);
Tailwind
colors: {
  custom: {
    50: '#8b5da3',
    500: '#57187c',
    950: '#000000',
  },
}
SCSS
$custom: #57187c;
$custom-light: #8b5da3;
$custom-dark: #000000;
JSON
{
  "hex": "#57187c",
  "rgb": {
    "r": 87,
    "g": 24,
    "b": 124
  },
  "hsl": {
    "h": 277.8,
    "s": 67.568,
    "l": 29.02
  },
  "oklch": {
    "l": 0.36625,
    "c": 0.15889,
    "h": 309
  },
  "luminance": 0.04135
}

Semantic roles & 50–950 ramp

primary
#57187C
secondary
#69B13F
accent
#EA3D7D
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #57187C

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

Preview Lab → · Contrast checker → · Palette generator →

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