#57125F#57125F

#57125F is a dark, vivid purple. Relative luminance 0.033; OKLCH L 33.8% C 0.138 H 323.3°. Best body text is #FFFFFF at 12.67:1 contrast (WCAG AA passes).

Color values

HEX#57125F
RGBrgb(87, 18, 95)
HSLhsl(294, 68%, 22%)
HSVhsv(294, 81%, 37%)
CMYKcmyk(8.4%, 81.1%, 0%, 62.7%)
CIE-LABlab(21.15, 41.26, -29.46)
CIE-LCHlch(21.15, 50.70, 324.48°)
OKLaboklab(33.84% 0.1105 -0.0823)
OKLCHoklch(33.84% 0.138 323.3)
XYZxyz(6.2122, 3.2855, 11.1312)
Luminance0.0328 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#57125F #1A5F12
analogous
#30125F #57125F #5F1241
triadic
#57125F #5F5712 #125F57
tetradic
#57125F #5F3012 #1A5F12 #12415F
square
#57125F #5F3012 #1A5F12 #12415F
split-complementary
#57125F #415F12 #125F30
monochromatic
#18051A #28082C #57125F #861C92 #B525C6

Accessibility & contrast

On white

12.67
#57125F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#57125F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #57125F
12.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##57125F#FFFFFF#000000##FFFFFF
##57125F1.0012.671.6612.67
#FFFFFF12.671.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E61
Deuteranopia (green-blind)
#20355D
Tritanopia (blue-blind)
#582138
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #57125f;
/* rgb */ color: rgb(87, 18, 95);
/* oklch */ color: oklch(33.8% 0.138 323.3);
Tailwind
colors: {
  custom: {
    50: '#89598d',
    500: '#57125f',
    950: '#000000',
  },
}
SCSS
$custom: #57125f;
$custom-light: #89598d;
$custom-dark: #000000;
JSON
{
  "hex": "#57125f",
  "rgb": {
    "r": 87,
    "g": 18,
    "b": 95
  },
  "hsl": {
    "h": 293.766,
    "s": 68.142,
    "l": 22.157
  },
  "oklch": {
    "l": 0.33844,
    "c": 0.13778,
    "h": 323.3
  },
  "luminance": 0.03285
}

Semantic roles & 50–950 ramp

primary
#57125F
secondary
#409736
accent
#EB3D4F
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040C
muted
#7D797D

Preview Lab

Preview with #57125F

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

Preview Lab → · Contrast checker → · Palette generator →

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