#57187D#57187D

#57187D is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.7% C 0.160 H 308.6°. Best body text is #FFFFFF at 11.46:1 contrast (WCAG AA passes).

Color values

HEX#57187D
RGBrgb(87, 24, 125)
HSLhsl(277, 68%, 29%)
HSVhsv(277, 81%, 49%)
CMYKcmyk(30.4%, 80.8%, 0%, 51%)
CIE-LABlab(24.19, 45.49, -43.97)
CIE-LCHlch(24.19, 63.27, 315.97°)
OKLaboklab(36.71% 0.0998 -0.1249)
OKLCHoklch(36.71% 0.16 308.6)
XYZxyz(7.9580, 4.1603, 19.7819)
Luminance0.0416 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#57187D #3E7D18
analogous
#25187D #57187D #7D1871
triadic
#57187D #7D5718 #187D57
tetradic
#57187D #7D2518 #3E7D18 #18717D
square
#57187D #7D2518 #3E7D18 #18717D
split-complementary
#57187D #717D18 #187D25
monochromatic
#12051A #330E4A #57187D #7B22B0 #9C37D9

Accessibility & contrast

On white

11.46
#57187D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #57187D
11.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##57187D#FFFFFF#000000##FFFFFF
##57187D1.0011.461.8311.46
#FFFFFF11.461.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003780
Deuteranopia (green-blind)
#003A7B
Tritanopia (blue-blind)
#51314A
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #57187d;
/* rgb */ color: rgb(87, 24, 125);
/* oklch */ color: oklch(36.7% 0.160 308.6);
Tailwind
colors: {
  custom: {
    50: '#8b5da3',
    500: '#57187d',
    950: '#000000',
  },
}
SCSS
$custom: #57187d;
$custom-light: #8b5da3;
$custom-dark: #000000;
JSON
{
  "hex": "#57187d",
  "rgb": {
    "r": 87,
    "g": 24,
    "b": 125
  },
  "hsl": {
    "h": 277.426,
    "s": 67.785,
    "l": 29.216
  },
  "oklch": {
    "l": 0.36709,
    "c": 0.15989,
    "h": 308.6
  },
  "luminance": 0.0416
}

Semantic roles & 50–950 ramp

primary
#57187D
secondary
#6AB23F
accent
#EB3D7E
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #57187D

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

Preview Lab → · Contrast checker → · Palette generator →

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