#57188F#57188F

#57188F is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.3% C 0.178 H 302.2°. Best body text is #FFFFFF at 10.87:1 contrast (WCAG AA passes).

Color values

HEX#57188F
RGBrgb(87, 24, 143)
HSLhsl(272, 71%, 33%)
HSVhsv(272, 83%, 56%)
CMYKcmyk(39.2%, 83.2%, 0%, 43.9%)
CIE-LABlab(25.75, 49.73, -52.72)
CIE-LCHlch(25.75, 72.47, 313.32°)
OKLaboklab(38.28% 0.0947 -0.1506)
OKLCHoklch(38.28% 0.178 302.2)
XYZxyz(9.2138, 4.6626, 26.3958)
Luminance0.0466 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#57188F #508F18
analogous
#1C188F #57188F #8F188B
triadic
#57188F #8F5718 #188F57
tetradic
#57188F #8F1C18 #508F18 #188B8F
square
#57188F #8F1C18 #508F18 #188B8F
split-complementary
#57188F #8B8F18 #188F1C
monochromatic
#170626 #370F5B #57188F #7721C3 #9542DF

Accessibility & contrast

On white

10.87
#57188F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#57188F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #57188F
10.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##57188F#FFFFFF#000000##FFFFFF
##57188F1.0010.871.9310.87
#FFFFFF10.871.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C92
Deuteranopia (green-blind)
#003C8D
Tritanopia (blue-blind)
#4B3955
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #57188f;
/* rgb */ color: rgb(87, 24, 143);
/* oklch */ color: oklch(38.3% 0.178 302.2);
Tailwind
colors: {
  custom: {
    50: '#8d5eb1',
    500: '#57188f',
    950: '#000000',
  },
}
SCSS
$custom: #57188f;
$custom-light: #8d5eb1;
$custom-dark: #000000;
JSON
{
  "hex": "#57188f",
  "rgb": {
    "r": 87,
    "g": 24,
    "b": 143
  },
  "hsl": {
    "h": 271.765,
    "s": 71.257,
    "l": 32.745
  },
  "oklch": {
    "l": 0.38277,
    "c": 0.1779,
    "h": 302.2
  },
  "luminance": 0.04663
}

Semantic roles & 50–950 ramp

primary
#57188F
secondary
#7EC043
accent
#EE3A8F
background
#F9F5FB
surface
#F1EAF6
border
#CBC6D0
text
#0D0511
muted
#7E7980

Preview Lab

Preview with #57188F

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

Preview Lab → · Contrast checker → · Palette generator →

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