#57237F#57237F

#57237F is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.1% C 0.149 H 306.4°. Best body text is #FFFFFF at 10.76:1 contrast (WCAG AA passes).

Color values

HEX#57237F
RGBrgb(87, 35, 127)
HSLhsl(274, 57%, 32%)
HSVhsv(274, 72%, 50%)
CMYKcmyk(31.5%, 72.4%, 0%, 50.2%)
CIE-LABlab(26.04, 41.16, -42.24)
CIE-LCHlch(26.04, 58.98, 314.26°)
OKLaboklab(38.07% 0.0883 -0.1199)
OKLCHoklch(38.07% 0.149 306.4)
XYZxyz(8.3614, 4.7607, 20.5530)
Luminance0.0476 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#57237F #4B7F23
analogous
#29237F #57237F #7F2379
triadic
#57237F #7F5723 #237F57
tetradic
#57237F #7F2923 #4B7F23 #23797F
square
#57237F #7F2923 #4B7F23 #23797F
split-complementary
#57237F #797F23 #237F29
monochromatic
#15091F #36164F #57237F #7830AF #974ECE

Accessibility & contrast

On white

10.76
#57237F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #57237F
10.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##57237F#FFFFFF#000000##FFFFFF
##57237F1.0010.761.9510.76
#FFFFFF10.761.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C82
Deuteranopia (green-blind)
#043E7D
Tritanopia (blue-blind)
#50384E
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #57237f;
/* rgb */ color: rgb(87, 35, 127);
/* oklch */ color: oklch(38.1% 0.149 306.4);
Tailwind
colors: {
  custom: {
    50: '#8a63a5',
    500: '#57237f',
    950: '#000000',
  },
}
SCSS
$custom: #57237f;
$custom-light: #8a63a5;
$custom-dark: #000000;
JSON
{
  "hex": "#57237f",
  "rgb": {
    "r": 87,
    "g": 35,
    "b": 127
  },
  "hsl": {
    "h": 273.913,
    "s": 56.79,
    "l": 31.765
  },
  "oklch": {
    "l": 0.38065,
    "c": 0.14893,
    "h": 306.4
  },
  "luminance": 0.04761
}

Semantic roles & 50–950 ramp

primary
#57237F
secondary
#78B14C
accent
#E0488A
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C050F
muted
#7D7A7F

Preview Lab

Preview with #57237F

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

Preview Lab → · Contrast checker → · Palette generator →

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