#57237C#57237C

#57237C is a dark, vivid violet. Relative luminance 0.047; OKLCH L 37.8% C 0.146 H 307.6°. Best body text is #FFFFFF at 10.84:1 contrast (WCAG AA passes).

Color values

HEX#57237C
RGBrgb(87, 35, 124)
HSLhsl(275, 56%, 31%)
HSVhsv(275, 72%, 49%)
CMYKcmyk(29.8%, 71.8%, 0%, 51.4%)
CIE-LABlab(25.81, 40.42, -40.72)
CIE-LCHlch(25.81, 57.37, 314.79°)
OKLaboklab(37.83% 0.0888 -0.1154)
OKLCHoklch(37.83% 0.146 307.6)
XYZxyz(8.1688, 4.6836, 19.5386)
Luminance0.0468 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#57237C #487C23
analogous
#2A237C #57237C #7C2374
triadic
#57237C #7C5723 #237C57
tetradic
#57237C #7C2A23 #487C23 #23747C
square
#57237C #7C2A23 #487C23 #23747C
split-complementary
#57237C #747C23 #237C2A
monochromatic
#14081D #36164C #57237C #7830AC #974DCD

Accessibility & contrast

On white

10.84
#57237C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#57237C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #57237C
10.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##57237C#FFFFFF#000000##FFFFFF
##57237C1.0010.841.9410.84
#FFFFFF10.841.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B7F
Deuteranopia (green-blind)
#0C3E7A
Tritanopia (blue-blind)
#51374D
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #57237c;
/* rgb */ color: rgb(87, 35, 124);
/* oklch */ color: oklch(37.8% 0.146 307.6);
Tailwind
colors: {
  custom: {
    50: '#8a62a2',
    500: '#57237c',
    950: '#000000',
  },
}
SCSS
$custom: #57237c;
$custom-light: #8a62a2;
$custom-dark: #000000;
JSON
{
  "hex": "#57237c",
  "rgb": {
    "r": 87,
    "g": 35,
    "b": 124
  },
  "hsl": {
    "h": 275.056,
    "s": 55.975,
    "l": 31.176
  },
  "oklch": {
    "l": 0.3783,
    "c": 0.1456,
    "h": 307.6
  },
  "luminance": 0.04684
}

Semantic roles & 50–950 ramp

primary
#57237C
secondary
#75AF4C
accent
#DF4987
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C050F
muted
#7D7A7F

Preview Lab

Preview with #57237C

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

Preview Lab → · Contrast checker → · Palette generator →

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