#57237E#57237E

#57237E is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.0% C 0.148 H 306.8°. Best body text is #FFFFFF at 10.79:1 contrast (WCAG AA passes).

Color values

HEX#57237E
RGBrgb(87, 35, 126)
HSLhsl(274, 57%, 32%)
HSVhsv(274, 72%, 49%)
CMYKcmyk(31%, 72.2%, 0%, 50.6%)
CIE-LABlab(25.97, 40.91, -41.73)
CIE-LCHlch(25.97, 58.44, 314.43°)
OKLaboklab(37.99% 0.0885 -0.1184)
OKLCHoklch(37.99% 0.148 306.8)
XYZxyz(8.2966, 4.7348, 20.2114)
Luminance0.0474 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#57237E #4A7E23
analogous
#2A237E #57237E #7E2378
triadic
#57237E #7E5723 #237E57
tetradic
#57237E #7E2A23 #4A7E23 #23787E
square
#57237E #7E2A23 #4A7E23 #23787E
split-complementary
#57237E #787E23 #237E2A
monochromatic
#15081E #36164E #57237E #7830AE #974ECE

Accessibility & contrast

On white

10.79
#57237E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#57237E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #57237E
10.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##57237E#FFFFFF#000000##FFFFFF
##57237E1.0010.791.9510.79
#FFFFFF10.791.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C81
Deuteranopia (green-blind)
#063E7C
Tritanopia (blue-blind)
#50384E
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #57237e;
/* rgb */ color: rgb(87, 35, 126);
/* oklch */ color: oklch(38.0% 0.148 306.8);
Tailwind
colors: {
  custom: {
    50: '#8a63a4',
    500: '#57237e',
    950: '#000000',
  },
}
SCSS
$custom: #57237e;
$custom-light: #8a63a4;
$custom-dark: #000000;
JSON
{
  "hex": "#57237e",
  "rgb": {
    "r": 87,
    "g": 35,
    "b": 126
  },
  "hsl": {
    "h": 274.286,
    "s": 56.522,
    "l": 31.569
  },
  "oklch": {
    "l": 0.37986,
    "c": 0.14782,
    "h": 306.8
  },
  "luminance": 0.04735
}

Semantic roles & 50–950 ramp

primary
#57237E
secondary
#77B04C
accent
#E04889
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C050F
muted
#7D7A7F

Preview Lab

Preview with #57237E

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

Preview Lab → · Contrast checker → · Palette generator →

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