#57288C#57288C

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

Color values

HEX#57288C
RGBrgb(87, 40, 140)
HSLhsl(268, 56%, 35%)
HSVhsv(268, 71%, 55%)
CMYKcmyk(37.9%, 71.4%, 0%, 45.1%)
CIE-LABlab(27.95, 41.98, -47.28)
CIE-LCHlch(27.95, 63.23, 311.60°)
OKLaboklab(39.74% 0.0807 -0.1347)
OKLCHoklch(39.74% 0.157 300.9)
XYZxyz(9.4217, 5.4372, 25.3590)
Luminance0.0544 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#57288C #5D8C28
analogous
#282B8C #57288C #89288C
triadic
#57288C #8C5728 #288C57
tetradic
#57288C #8C282B #5D8C28 #288C89
square
#57288C #8C282B #5D8C28 #288C89
split-complementary
#57288C #8C8928 #2B8C28
monochromatic
#1C0D2D #391A5C #57288C #7536BC #945ED1

Accessibility & contrast

On white

10.06
#57288C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#57288C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #57288C
10.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##57288C#FFFFFF#000000##FFFFFF
##57288C1.0010.062.0910.06
#FFFFFF10.061.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00418F
Deuteranopia (green-blind)
#00418A
Tritanopia (blue-blind)
#4B4057
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #57288c;
/* rgb */ color: rgb(87, 40, 140);
/* oklch */ color: oklch(39.7% 0.157 300.9);
Tailwind
colors: {
  custom: {
    50: '#8b66ae',
    500: '#57288c',
    950: '#000000',
  },
}
SCSS
$custom: #57288c;
$custom-light: #8b66ae;
$custom-dark: #000000;
JSON
{
  "hex": "#57288c",
  "rgb": {
    "r": 87,
    "g": 40,
    "b": 140
  },
  "hsl": {
    "h": 268.2,
    "s": 55.556,
    "l": 35.294
  },
  "oklch": {
    "l": 0.39741,
    "c": 0.15709,
    "h": 300.9
  },
  "luminance": 0.05437
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #57288C

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

Preview Lab → · Contrast checker → · Palette generator →

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