#57187F#57187F

#57187F is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.9% C 0.162 H 307.8°. Best body text is #FFFFFF at 11.40:1 contrast (WCAG AA passes).

Color values

HEX#57187F
RGBrgb(87, 24, 127)
HSLhsl(277, 68%, 30%)
HSVhsv(277, 81%, 50%)
CMYKcmyk(31.5%, 81.1%, 0%, 50.2%)
CIE-LABlab(24.36, 45.95, -44.97)
CIE-LCHlch(24.36, 64.29, 315.62°)
OKLaboklab(36.88% 0.0993 -0.1278)
OKLCHoklch(36.88% 0.162 307.8)
XYZxyz(8.0871, 4.2119, 20.4615)
Luminance0.0421 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#57187F #407F18
analogous
#24187F #57187F #7F1874
triadic
#57187F #7F5718 #187F57
tetradic
#57187F #7F2418 #407F18 #18747F
square
#57187F #7F2418 #407F18 #18747F
split-complementary
#57187F #747F18 #187F24
monochromatic
#12051A #340E4C #57187F #7A22B2 #9B38D9

Accessibility & contrast

On white

11.40
#57187F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#57187F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #57187F
11.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##57187F#FFFFFF#000000##FFFFFF
##57187F1.0011.401.8411.40
#FFFFFF11.401.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003882
Deuteranopia (green-blind)
#003A7D
Tritanopia (blue-blind)
#50324B
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #57187f;
/* rgb */ color: rgb(87, 24, 127);
/* oklch */ color: oklch(36.9% 0.162 307.8);
Tailwind
colors: {
  custom: {
    50: '#8b5da5',
    500: '#57187f',
    950: '#000000',
  },
}
SCSS
$custom: #57187f;
$custom-light: #8b5da5;
$custom-dark: #000000;
JSON
{
  "hex": "#57187f",
  "rgb": {
    "r": 87,
    "g": 24,
    "b": 127
  },
  "hsl": {
    "h": 276.699,
    "s": 68.212,
    "l": 29.608
  },
  "oklch": {
    "l": 0.36876,
    "c": 0.16188,
    "h": 307.8
  },
  "luminance": 0.04212
}

Semantic roles & 50–950 ramp

primary
#57187F
secondary
#6CB33F
accent
#EB3D80
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #57187F

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

Preview Lab → · Contrast checker → · Palette generator →

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