#5D256B#5D256B

#5D256B is a dark, vivid purple. Relative luminance 0.047; OKLCH L 37.7% C 0.127 H 319.1°. Best body text is #FFFFFF at 10.81:1 contrast (WCAG AA passes).

Color values

HEX#5D256B
RGBrgb(93, 37, 107)
HSLhsl(288, 49%, 28%)
HSVhsv(288, 65%, 42%)
CMYKcmyk(13.1%, 65.4%, 0%, 58%)
CIE-LABlab(25.90, 36.96, -29.67)
CIE-LCHlch(25.90, 47.39, 321.24°)
OKLaboklab(37.71% 0.0957 -0.0828)
OKLCHoklch(37.71% 0.127 319.1)
XYZxyz(7.8293, 4.7122, 14.4042)
Luminance0.0471 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D256B #336B25
analogous
#3A256B #5D256B #6B2556
triadic
#5D256B #6B5D25 #256B5D
tetradic
#5D256B #6B3A25 #336B25 #25566B
square
#5D256B #6B3A25 #336B25 #25566B
split-complementary
#5D256B #566B25 #256B3A
monochromatic
#140817 #35153E #5D256B #853598 #A94AC0

Accessibility & contrast

On white

10.81
#5D256B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#5D256B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D256B
10.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D256B#FFFFFF#000000##FFFFFF
##5D256B1.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)
#123A6D
Deuteranopia (green-blind)
#293F69
Tritanopia (blue-blind)
#5D3144
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5d256b;
/* rgb */ color: rgb(93, 37, 107);
/* oklch */ color: oklch(37.7% 0.127 319.1);
Tailwind
colors: {
  custom: {
    50: '#8d6496',
    500: '#5d256b',
    950: '#000000',
  },
}
SCSS
$custom: #5d256b;
$custom-light: #8d6496;
$custom-dark: #000000;
JSON
{
  "hex": "#5d256b",
  "rgb": {
    "r": 93,
    "g": 37,
    "b": 107
  },
  "hsl": {
    "h": 288,
    "s": 48.611,
    "l": 28.235
  },
  "oklch": {
    "l": 0.37705,
    "c": 0.12655,
    "h": 319.1
  },
  "luminance": 0.04712
}

Semantic roles & 50–950 ramp

primary
#5D256B
secondary
#5E9E4E
accent
#D8506B
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0C050D
muted
#7D7A7E

Preview Lab

Preview with #5D256B

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

Preview Lab → · Contrast checker → · Palette generator →

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