#5D256E#5D256E

#5D256E is a dark, vivid purple. Relative luminance 0.048; OKLCH L 37.9% C 0.130 H 317.5°. Best body text is #FFFFFF at 10.74:1 contrast (WCAG AA passes).

Color values

HEX#5D256E
RGBrgb(93, 37, 110)
HSLhsl(286, 50%, 29%)
HSVhsv(286, 66%, 43%)
CMYKcmyk(15.5%, 66.4%, 0%, 56.9%)
CIE-LABlab(26.09, 37.62, -31.30)
CIE-LCHlch(26.09, 48.93, 320.24°)
OKLaboklab(37.9% 0.0957 -0.0876)
OKLCHoklch(37.9% 0.13 317.5)
XYZxyz(7.9898, 4.7764, 15.2499)
Luminance0.0478 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D256E #366E25
analogous
#39256E #5D256E #6E255B
triadic
#5D256E #6E5D25 #256E5D
tetradic
#5D256E #6E3925 #366E25 #255B6E
square
#5D256E #6E3925 #366E25 #255B6E
split-complementary
#5D256E #5B6E25 #256E39
monochromatic
#130817 #361640 #5D256E #84349C #A74BC2

Accessibility & contrast

On white

10.74
#5D256E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#5D256E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D256E
10.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D256E#FFFFFF#000000##FFFFFF
##5D256E1.0010.741.9610.74
#FFFFFF10.741.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D3A70
Deuteranopia (green-blind)
#27406C
Tritanopia (blue-blind)
#5C3246
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5d256e;
/* rgb */ color: rgb(93, 37, 110);
/* oklch */ color: oklch(37.9% 0.130 317.5);
Tailwind
colors: {
  custom: {
    50: '#8d6498',
    500: '#5d256e',
    950: '#000000',
  },
}
SCSS
$custom: #5d256e;
$custom-light: #8d6498;
$custom-dark: #000000;
JSON
{
  "hex": "#5d256e",
  "rgb": {
    "r": 93,
    "g": 37,
    "b": 110
  },
  "hsl": {
    "h": 286.027,
    "s": 49.66,
    "l": 28.824
  },
  "oklch": {
    "l": 0.37903,
    "c": 0.12973,
    "h": 317.5
  },
  "luminance": 0.04776
}

Semantic roles & 50–950 ramp

primary
#5D256E
secondary
#61A14E
accent
#D94F6F
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0C060D
muted
#7D7A7E

Preview Lab

Preview with #5D256E

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

Preview Lab → · Contrast checker → · Palette generator →

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