#57287F#57287F

#57287F is a dark, vivid violet. Relative luminance 0.051; OKLCH L 38.7% C 0.142 H 305.5°. Best body text is #FFFFFF at 10.42:1 contrast (WCAG AA passes).

Color values

HEX#57287F
RGBrgb(87, 40, 127)
HSLhsl(272, 52%, 33%)
HSVhsv(272, 69%, 50%)
CMYKcmyk(31.5%, 68.5%, 0%, 50.2%)
CIE-LABlab(26.95, 38.63, -40.77)
CIE-LCHlch(26.95, 56.17, 313.46°)
OKLaboklab(38.71% 0.0825 -0.1156)
OKLCHoklch(38.71% 0.142 305.5)
XYZxyz(8.5192, 5.0762, 20.6056)
Luminance0.0508 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#57287F #507F28
analogous
#2C287F #57287F #7F287B
triadic
#57287F #7F5728 #287F57
tetradic
#57287F #7F2C28 #507F28 #287B7F
square
#57287F #7F2C28 #507F28 #287B7F
split-complementary
#57287F #7B7F28 #287F2C
monochromatic
#170B22 #371950 #57287F #7737AE #9557CA

Accessibility & contrast

On white

10.42
#57287F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#57287F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #57287F
10.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##57287F#FFFFFF#000000##FFFFFF
##57287F1.0010.422.0210.42
#FFFFFF10.421.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E82
Deuteranopia (green-blind)
#0F407D
Tritanopia (blue-blind)
#503B50
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #57287f;
/* rgb */ color: rgb(87, 40, 127);
/* oklch */ color: oklch(38.7% 0.142 305.5);
Tailwind
colors: {
  custom: {
    50: '#8a65a5',
    500: '#57287f',
    950: '#000000',
  },
}
SCSS
$custom: #57287f;
$custom-light: #8a65a5;
$custom-dark: #000000;
JSON
{
  "hex": "#57287f",
  "rgb": {
    "r": 87,
    "g": 40,
    "b": 127
  },
  "hsl": {
    "h": 272.414,
    "s": 52.096,
    "l": 32.745
  },
  "oklch": {
    "l": 0.38715,
    "c": 0.14204,
    "h": 305.5
  },
  "luminance": 0.05076
}

Semantic roles & 50–950 ramp

primary
#57287F
secondary
#7EAF54
accent
#DC4C8E
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C060F
muted
#7D7A7F

Preview Lab

Preview with #57287F

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

Preview Lab → · Contrast checker → · Palette generator →

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