#57238E#57238E

#57238E is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.3% C 0.166 H 301.1°. Best body text is #FFFFFF at 10.31:1 contrast (WCAG AA passes).

Color values

HEX#57238E
RGBrgb(87, 35, 142)
HSLhsl(269, 60%, 35%)
HSVhsv(269, 75%, 56%)
CMYKcmyk(38.7%, 75.4%, 0%, 44.3%)
CIE-LABlab(27.24, 44.93, -49.66)
CIE-LCHlch(27.24, 66.97, 312.13°)
OKLaboklab(39.3% 0.0855 -0.1417)
OKLCHoklch(39.3% 0.166 301.1)
XYZxyz(9.4128, 5.1812, 26.0901)
Luminance0.0518 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#57238E #5A8E23
analogous
#23248E #57238E #8D238E
triadic
#57238E #8E5723 #238E57
tetradic
#57238E #8E2324 #5A8E23 #238E8D
square
#57238E #8E2324 #5A8E23 #238E8D
split-complementary
#57238E #8E8D23 #248E23
monochromatic
#1B0B2C #39175D #57238E #752FBF #9456D5

Accessibility & contrast

On white

10.31
#57238E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#57238E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #57238E
10.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##57238E#FFFFFF#000000##FFFFFF
##57238E1.0010.312.0410.31
#FFFFFF10.311.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004091
Deuteranopia (green-blind)
#00408C
Tritanopia (blue-blind)
#4B3E57
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #57238e;
/* rgb */ color: rgb(87, 35, 142);
/* oklch */ color: oklch(39.3% 0.166 301.1);
Tailwind
colors: {
  custom: {
    50: '#8c63b0',
    500: '#57238e',
    950: '#000000',
  },
}
SCSS
$custom: #57238e;
$custom-light: #8c63b0;
$custom-dark: #000000;
JSON
{
  "hex": "#57238e",
  "rgb": {
    "r": 87,
    "g": 35,
    "b": 142
  },
  "hsl": {
    "h": 269.159,
    "s": 60.452,
    "l": 34.706
  },
  "oklch": {
    "l": 0.39295,
    "c": 0.1655,
    "h": 301.1
  },
  "luminance": 0.05181
}

Semantic roles & 50–950 ramp

primary
#57238E
secondary
#88B953
accent
#E44496
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0D0611
muted
#7D7A80

Preview Lab

Preview with #57238E

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

Preview Lab → · Contrast checker → · Palette generator →

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