#57288B#57288B

#57288B is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.7% C 0.156 H 301.3°. Best body text is #FFFFFF at 10.09:1 contrast (WCAG AA passes).

Color values

HEX#57288B
RGBrgb(87, 40, 139)
HSLhsl(268, 55%, 35%)
HSVhsv(268, 71%, 55%)
CMYKcmyk(37.4%, 71.2%, 0%, 45.5%)
CIE-LABlab(27.87, 41.72, -46.79)
CIE-LCHlch(27.87, 62.69, 311.72°)
OKLaboklab(39.66% 0.0809 -0.1333)
OKLCHoklch(39.66% 0.156 301.3)
XYZxyz(9.3483, 5.4078, 24.9724)
Luminance0.0541 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#57288B #5C8B28
analogous
#282A8B #57288B #88288B
triadic
#57288B #8B5728 #288B57
tetradic
#57288B #8B282A #5C8B28 #288B88
square
#57288B #8B282A #5C8B28 #288B88
split-complementary
#57288B #8B8828 #2A8B28
monochromatic
#1C0D2C #391A5B #57288B #7536BB #945DD0

Accessibility & contrast

On white

10.09
#57288B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#57288B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #57288B
10.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##57288B#FFFFFF#000000##FFFFFF
##57288B1.0010.092.0810.09
#FFFFFF10.091.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00418E
Deuteranopia (green-blind)
#004189
Tritanopia (blue-blind)
#4C3F56
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #57288b;
/* rgb */ color: rgb(87, 40, 139);
/* oklch */ color: oklch(39.7% 0.156 301.3);
Tailwind
colors: {
  custom: {
    50: '#8b66ae',
    500: '#57288b',
    950: '#000000',
  },
}
SCSS
$custom: #57288b;
$custom-light: #8b66ae;
$custom-dark: #000000;
JSON
{
  "hex": "#57288b",
  "rgb": {
    "r": 87,
    "g": 40,
    "b": 139
  },
  "hsl": {
    "h": 268.485,
    "s": 55.307,
    "l": 35.098
  },
  "oklch": {
    "l": 0.3966,
    "c": 0.15593,
    "h": 301.3
  },
  "luminance": 0.05408
}

Semantic roles & 50–950 ramp

primary
#57288B
secondary
#8AB659
accent
#DF4998
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #57288B

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

Preview Lab → · Contrast checker → · Palette generator →

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