#5B256D#5B256D

#5B256D is a dark, vivid purple. Relative luminance 0.047; OKLCH L 37.6% C 0.128 H 316.7°. Best body text is #FFFFFF at 10.88:1 contrast (WCAG AA passes).

Color values

HEX#5B256D
RGBrgb(91, 37, 109)
HSLhsl(285, 49%, 29%)
HSVhsv(285, 66%, 43%)
CMYKcmyk(16.5%, 66.1%, 0%, 57.3%)
CIE-LABlab(25.72, 36.86, -31.26)
CIE-LCHlch(25.72, 48.33, 319.70°)
OKLaboklab(37.55% 0.093 -0.0876)
OKLCHoklch(37.55% 0.128 316.7)
XYZxyz(7.7359, 4.6517, 14.9554)
Luminance0.0465 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B256D #376D25
analogous
#37256D #5B256D #6D255B
triadic
#5B256D #6D5B25 #256D5B
tetradic
#5B256D #6D3725 #376D25 #255B6D
square
#5B256D #6D3725 #376D25 #255B6D
split-complementary
#5B256D #5B6D25 #256D37
monochromatic
#130817 #35153F #5B256D #81359B #A44BC2

Accessibility & contrast

On white

10.88
#5B256D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#5B256D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B256D
10.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B256D#FFFFFF#000000##FFFFFF
##5B256D1.0010.881.9310.88
#FFFFFF10.881.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D3A6F
Deuteranopia (green-blind)
#263F6B
Tritanopia (blue-blind)
#5A3245
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5b256d;
/* rgb */ color: rgb(91, 37, 109);
/* oklch */ color: oklch(37.6% 0.128 316.7);
Tailwind
colors: {
  custom: {
    50: '#8c6397',
    500: '#5b256d',
    950: '#000000',
  },
}
SCSS
$custom: #5b256d;
$custom-light: #8c6397;
$custom-dark: #000000;
JSON
{
  "hex": "#5b256d",
  "rgb": {
    "r": 91,
    "g": 37,
    "b": 109
  },
  "hsl": {
    "h": 285,
    "s": 49.315,
    "l": 28.627
  },
  "oklch": {
    "l": 0.37551,
    "c": 0.12772,
    "h": 316.7
  },
  "luminance": 0.04651
}

Semantic roles & 50–950 ramp

primary
#5B256D
secondary
#62A04E
accent
#D94F71
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0C050D
muted
#7D7A7E

Preview Lab

Preview with #5B256D

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

Preview Lab → · Contrast checker → · Palette generator →

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