#57287E#57287E

#57287E is a dark, vivid violet. Relative luminance 0.051; OKLCH L 38.6% C 0.141 H 305.9°. Best body text is #FFFFFF at 10.45:1 contrast (WCAG AA passes).

Color values

HEX#57287E
RGBrgb(87, 40, 126)
HSLhsl(273, 52%, 33%)
HSVhsv(273, 68%, 49%)
CMYKcmyk(31%, 68.3%, 0%, 50.6%)
CIE-LABlab(26.88, 38.38, -40.26)
CIE-LCHlch(26.88, 55.62, 313.63°)
OKLaboklab(38.64% 0.0826 -0.1141)
OKLCHoklch(38.64% 0.141 305.9)
XYZxyz(8.4544, 5.0503, 20.2640)
Luminance0.0505 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#57287E #4F7E28
analogous
#2C287E #57287E #7E287A
triadic
#57287E #7E5728 #287E57
tetradic
#57287E #7E2C28 #4F7E28 #287A7E
square
#57287E #7E2C28 #4F7E28 #287A7E
split-complementary
#57287E #7A7E28 #287E2C
monochromatic
#170B21 #371950 #57287E #7737AC #9657CA

Accessibility & contrast

On white

10.45
#57287E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#57287E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #57287E
10.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##57287E#FFFFFF#000000##FFFFFF
##57287E1.0010.452.0110.45
#FFFFFF10.451.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E81
Deuteranopia (green-blind)
#11407C
Tritanopia (blue-blind)
#503B4F
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #57287e;
/* rgb */ color: rgb(87, 40, 126);
/* oklch */ color: oklch(38.6% 0.141 305.9);
Tailwind
colors: {
  custom: {
    50: '#8a65a4',
    500: '#57287e',
    950: '#000000',
  },
}
SCSS
$custom: #57287e;
$custom-light: #8a65a4;
$custom-dark: #000000;
JSON
{
  "hex": "#57287e",
  "rgb": {
    "r": 87,
    "g": 40,
    "b": 126
  },
  "hsl": {
    "h": 272.791,
    "s": 51.807,
    "l": 32.549
  },
  "oklch": {
    "l": 0.38639,
    "c": 0.14087,
    "h": 305.9
  },
  "luminance": 0.0505
}

Semantic roles & 50–950 ramp

primary
#57287E
secondary
#7DAF53
accent
#DB4D8D
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C060F
muted
#7D7A7F

Preview Lab

Preview with #57287E

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

Preview Lab → · Contrast checker → · Palette generator →

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