#5D256F#5D256F

#5D256F is a dark, vivid purple. Relative luminance 0.048; OKLCH L 38.0% C 0.131 H 317.0°. Best body text is #FFFFFF at 10.72:1 contrast (WCAG AA passes).

Color values

HEX#5D256F
RGBrgb(93, 37, 111)
HSLhsl(285, 50%, 29%)
HSVhsv(285, 67%, 44%)
CMYKcmyk(16.2%, 66.7%, 0%, 56.5%)
CIE-LABlab(26.15, 37.84, -31.84)
CIE-LCHlch(26.15, 49.45, 319.92°)
OKLaboklab(37.97% 0.0957 -0.0892)
OKLCHoklch(37.97% 0.131 317)
XYZxyz(8.0446, 4.7983, 15.5383)
Luminance0.0480 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D256F #376F25
analogous
#38256F #5D256F #6F255C
triadic
#5D256F #6F5D25 #256F5D
tetradic
#5D256F #6F3825 #376F25 #255C6F
square
#5D256F #6F3825 #376F25 #255C6F
split-complementary
#5D256F #5C6F25 #256F38
monochromatic
#130817 #371641 #5D256F #83349D #A64BC3

Accessibility & contrast

On white

10.72
#5D256F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5D256F
10.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D256F#FFFFFF#000000##FFFFFF
##5D256F1.0010.721.9610.72
#FFFFFF10.721.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.721.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5d256f;
/* rgb */ color: rgb(93, 37, 111);
/* oklch */ color: oklch(38.0% 0.131 317.0);
Tailwind
colors: {
  custom: {
    50: '#8d6499',
    500: '#5d256f',
    950: '#000000',
  },
}
SCSS
$custom: #5d256f;
$custom-light: #8d6499;
$custom-dark: #000000;
JSON
{
  "hex": "#5d256f",
  "rgb": {
    "r": 93,
    "g": 37,
    "b": 111
  },
  "hsl": {
    "h": 285.405,
    "s": 50,
    "l": 29.02
  },
  "oklch": {
    "l": 0.3797,
    "c": 0.13079,
    "h": 317
  },
  "luminance": 0.04798
}

Semantic roles & 50–950 ramp

primary
#5D256F
secondary
#62A24E
accent
#DA4E70
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0C060E
muted
#7D7A7E

Preview Lab

Preview with #5D256F

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

Preview Lab → · Contrast checker → · Palette generator →

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