#57238B#57238B

#57238B is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.0% C 0.162 H 302.1°. Best body text is #FFFFFF at 10.40:1 contrast (WCAG AA passes).

Color values

HEX#57238B
RGBrgb(87, 35, 139)
HSLhsl(270, 60%, 34%)
HSVhsv(270, 75%, 55%)
CMYKcmyk(37.4%, 74.8%, 0%, 45.5%)
CIE-LABlab(27.00, 44.17, -48.21)
CIE-LCHlch(27.00, 65.38, 312.50°)
OKLaboklab(39.04% 0.0861 -0.1374)
OKLCHoklch(39.04% 0.162 302.1)
XYZxyz(9.1906, 5.0923, 24.9198)
Luminance0.0509 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#57238B #578B23
analogous
#23238B #57238B #8B238B
triadic
#57238B #8B5723 #238B57
tetradic
#57238B #8B2323 #578B23 #238B8B
square
#57238B #8B2323 #578B23 #238B8B
split-complementary
#57238B #8B8B23 #238B23
monochromatic
#1A0A29 #38175A #57238B #762FBC #9454D4

Accessibility & contrast

On white

10.40
#57238B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#57238B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #57238B
10.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##57238B#FFFFFF#000000##FFFFFF
##57238B1.0010.402.0210.40
#FFFFFF10.401.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8E
Deuteranopia (green-blind)
#003F89
Tritanopia (blue-blind)
#4C3D55
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #57238b;
/* rgb */ color: rgb(87, 35, 139);
/* oklch */ color: oklch(39.0% 0.162 302.1);
Tailwind
colors: {
  custom: {
    50: '#8b63ae',
    500: '#57238b',
    950: '#000000',
  },
}
SCSS
$custom: #57238b;
$custom-light: #8b63ae;
$custom-dark: #000000;
JSON
{
  "hex": "#57238b",
  "rgb": {
    "r": 87,
    "g": 35,
    "b": 139
  },
  "hsl": {
    "h": 270,
    "s": 59.77,
    "l": 34.118
  },
  "oklch": {
    "l": 0.39042,
    "c": 0.16219,
    "h": 302.1
  },
  "luminance": 0.05092
}

Semantic roles & 50–950 ramp

primary
#57238B
secondary
#85B852
accent
#E34594
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0510
muted
#7D7A7F

Preview Lab

Preview with #57238B

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

Preview Lab → · Contrast checker → · Palette generator →

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