#5D1257#5D1257

#5D1257 is a dark, vivid purple. Relative luminance 0.034; OKLCH L 34.3% C 0.134 H 331.7°. Best body text is #FFFFFF at 12.43:1 contrast (WCAG AA passes).

Color values

HEX#5D1257
RGBrgb(93, 18, 87)
HSLhsl(305, 68%, 22%)
HSVhsv(305, 81%, 36%)
CMYKcmyk(0%, 80.6%, 6.5%, 63.5%)
CIE-LABlab(21.76, 41.21, -23.11)
CIE-LCHlch(21.76, 47.24, 330.72°)
OKLaboklab(34.33% 0.118 -0.0636)
OKLCHoklch(34.33% 0.134 331.7)
XYZxyz(6.4508, 3.4484, 9.3408)
Luminance0.0345 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1257 #125D18
analogous
#3E125D #5D1257 #5D1232
triadic
#5D1257 #575D12 #12575D
tetradic
#5D1257 #5D3E12 #125D18 #12325D
square
#5D1257 #5D3E12 #125D18 #12325D
split-complementary
#5D1257 #325D12 #125D3E
monochromatic
#1A0518 #2A0827 #5D1257 #901C87 #C426B7

Accessibility & contrast

On white

12.43
#5D1257 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#5D1257 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D1257
12.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1257#FFFFFF#000000##FFFFFF
##5D12571.0012.431.6912.43
#FFFFFF12.431.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C2D59
Deuteranopia (green-blind)
#2B3855
Tritanopia (blue-blind)
#611B33
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #5d1257;
/* rgb */ color: rgb(93, 18, 87);
/* oklch */ color: oklch(34.3% 0.134 331.7);
Tailwind
colors: {
  custom: {
    50: '#8e5a86',
    500: '#5d1257',
    950: '#000000',
  },
}
SCSS
$custom: #5d1257;
$custom-light: #8e5a86;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1257",
  "rgb": {
    "r": 93,
    "g": 18,
    "b": 87
  },
  "hsl": {
    "h": 304.8,
    "s": 67.568,
    "l": 21.765
  },
  "oklch": {
    "l": 0.34325,
    "c": 0.13402,
    "h": 331.7
  },
  "luminance": 0.03448
}

Semantic roles & 50–950 ramp

primary
#5D1257
secondary
#35953D
accent
#EA4B3D
background
#F9F5F8
surface
#F1E9EF
border
#CBC5CA
text
#0D040B
muted
#7E797C

Preview Lab

Preview with #5D1257

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

Preview Lab → · Contrast checker → · Palette generator →

#5D1257 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva