#57237D#57237D

#57237D is a dark, vivid violet. Relative luminance 0.047; OKLCH L 37.9% C 0.147 H 307.2°. Best body text is #FFFFFF at 10.81:1 contrast (WCAG AA passes).

Color values

HEX#57237D
RGBrgb(87, 35, 125)
HSLhsl(275, 56%, 31%)
HSVhsv(275, 72%, 49%)
CMYKcmyk(30.4%, 72%, 0%, 51%)
CIE-LABlab(25.89, 40.67, -41.23)
CIE-LCHlch(25.89, 57.91, 314.61°)
OKLaboklab(37.91% 0.0886 -0.1169)
OKLCHoklch(37.91% 0.147 307.2)
XYZxyz(8.2324, 4.7091, 19.8733)
Luminance0.0471 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#57237D #497D23
analogous
#2A237D #57237D #7D2376
triadic
#57237D #7D5723 #237D57
tetradic
#57237D #7D2A23 #497D23 #23767D
square
#57237D #7D2A23 #497D23 #23767D
split-complementary
#57237D #767D23 #237D2A
monochromatic
#14081D #36164D #57237D #7830AD #974DCD

Accessibility & contrast

On white

10.81
#57237D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #57237D
10.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##57237D#FFFFFF#000000##FFFFFF
##57237D1.0010.811.9410.81
#FFFFFF10.811.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C80
Deuteranopia (green-blind)
#093E7B
Tritanopia (blue-blind)
#51374D
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #57237d;
/* rgb */ color: rgb(87, 35, 125);
/* oklch */ color: oklch(37.9% 0.147 307.2);
Tailwind
colors: {
  custom: {
    50: '#8a62a3',
    500: '#57237d',
    950: '#000000',
  },
}
SCSS
$custom: #57237d;
$custom-light: #8a62a3;
$custom-dark: #000000;
JSON
{
  "hex": "#57237d",
  "rgb": {
    "r": 87,
    "g": 35,
    "b": 125
  },
  "hsl": {
    "h": 274.667,
    "s": 56.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.37908,
    "c": 0.14671,
    "h": 307.2
  },
  "luminance": 0.04709
}

Semantic roles & 50–950 ramp

primary
#57237D
secondary
#76AF4C
accent
#E04888
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C050F
muted
#7D7A7F

Preview Lab

Preview with #57237D

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

Preview Lab → · Contrast checker → · Palette generator →

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