#57239B#57239B

#57239B is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.4% C 0.180 H 297.2°. Best body text is #FFFFFF at 9.91:1 contrast (WCAG AA passes).

Color values

HEX#57239B
RGBrgb(87, 35, 155)
HSLhsl(266, 63%, 37%)
HSVhsv(266, 77%, 61%)
CMYKcmyk(43.9%, 77.4%, 0%, 39.2%)
CIE-LABlab(28.37, 48.27, -55.83)
CIE-LCHlch(28.37, 73.80, 310.85°)
OKLaboklab(40.43% 0.0823 -0.1598)
OKLCHoklch(40.43% 0.18 297.2)
XYZxyz(10.4464, 5.5947, 31.5335)
Luminance0.0559 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#57239B #679B23
analogous
#232B9B #57239B #93239B
triadic
#57239B #9B5723 #239B57
tetradic
#57239B #9B232B #679B23 #239B93
square
#57239B #9B232B #679B23 #239B93
split-complementary
#57239B #9B9323 #2B9B23
monochromatic
#1F0C37 #3B1869 #57239B #732ECD #945EDB

Accessibility & contrast

On white

9.91
#57239B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#57239B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #57239B
9.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##57239B#FFFFFF#000000##FFFFFF
##57239B1.009.912.129.91
#FFFFFF9.911.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439E
Deuteranopia (green-blind)
#004199
Tritanopia (blue-blind)
#45435E
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #57239b;
/* rgb */ color: rgb(87, 35, 155);
/* oklch */ color: oklch(40.4% 0.180 297.2);
Tailwind
colors: {
  custom: {
    50: '#8d64b9',
    500: '#57239b',
    950: '#000000',
  },
}
SCSS
$custom: #57239b;
$custom-light: #8d64b9;
$custom-dark: #000000;
JSON
{
  "hex": "#57239b",
  "rgb": {
    "r": 87,
    "g": 35,
    "b": 155
  },
  "hsl": {
    "h": 266,
    "s": 63.158,
    "l": 37.255
  },
  "oklch": {
    "l": 0.40431,
    "c": 0.17974,
    "h": 297.2
  },
  "luminance": 0.05595
}

Semantic roles & 50–950 ramp

primary
#57239B
secondary
#94BF5A
accent
#E6429F
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #57239B

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

Preview Lab → · Contrast checker → · Palette generator →

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