#57238C#57238C

#57238C is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.1% C 0.163 H 301.8°. Best body text is #FFFFFF at 10.37:1 contrast (WCAG AA passes).

Color values

HEX#57238C
RGBrgb(87, 35, 140)
HSLhsl(270, 60%, 34%)
HSVhsv(270, 75%, 55%)
CMYKcmyk(37.9%, 75%, 0%, 45.1%)
CIE-LABlab(27.08, 44.42, -48.69)
CIE-LCHlch(27.08, 65.91, 312.37°)
OKLaboklab(39.13% 0.0859 -0.1389)
OKLCHoklch(39.13% 0.163 301.8)
XYZxyz(9.2640, 5.1217, 25.3064)
Luminance0.0512 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#57238C #588C23
analogous
#23248C #57238C #8C238C
triadic
#57238C #8C5723 #238C57
tetradic
#57238C #8C2324 #588C23 #238C8C
square
#57238C #8C2324 #588C23 #238C8C
split-complementary
#57238C #8C8C23 #248C23
monochromatic
#1A0B2A #39175B #57238C #752FBD #9455D4

Accessibility & contrast

On white

10.37
#57238C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #57238C
10.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##57238C#FFFFFF#000000##FFFFFF
##57238C1.0010.372.0210.37
#FFFFFF10.371.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.371.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #57238c;
/* rgb */ color: rgb(87, 35, 140);
/* oklch */ color: oklch(39.1% 0.163 301.8);
Tailwind
colors: {
  custom: {
    50: '#8c63ae',
    500: '#57238c',
    950: '#000000',
  },
}
SCSS
$custom: #57238c;
$custom-light: #8c63ae;
$custom-dark: #000000;
JSON
{
  "hex": "#57238c",
  "rgb": {
    "r": 87,
    "g": 35,
    "b": 140
  },
  "hsl": {
    "h": 269.714,
    "s": 60,
    "l": 34.314
  },
  "oklch": {
    "l": 0.39126,
    "c": 0.1633,
    "h": 301.8
  },
  "luminance": 0.05122
}

Semantic roles & 50–950 ramp

primary
#57238C
secondary
#86B852
accent
#E34595
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0D0610
muted
#7D7A7F

Preview Lab

Preview with #57238C

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

Preview Lab → · Contrast checker → · Palette generator →

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