#5B256E#5B256E

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

Color values

HEX#5B256E
RGBrgb(91, 37, 110)
HSLhsl(284, 50%, 29%)
HSVhsv(284, 66%, 43%)
CMYKcmyk(17.3%, 66.4%, 0%, 56.9%)
CIE-LABlab(25.78, 37.09, -31.80)
CIE-LCHlch(25.78, 48.86, 319.39°)
OKLaboklab(37.62% 0.093 -0.0891)
OKLCHoklch(37.62% 0.129 316.2)
XYZxyz(7.7900, 4.6734, 15.2405)
Luminance0.0467 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B256E #386E25
analogous
#37256E #5B256E #6E255D
triadic
#5B256E #6E5B25 #256E5B
tetradic
#5B256E #6E3725 #386E25 #255D6E
square
#5B256E #6E3725 #386E25 #255D6E
split-complementary
#5B256E #5D6E25 #256E37
monochromatic
#130817 #351640 #5B256E #81349C #A34BC2

Accessibility & contrast

On white

10.85
#5B256E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B256E
10.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B256E#FFFFFF#000000##FFFFFF
##5B256E1.0010.851.9310.85
#FFFFFF10.851.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B3A70
Deuteranopia (green-blind)
#253F6C
Tritanopia (blue-blind)
#5A3246
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5b256e;
/* rgb */ color: rgb(91, 37, 110);
/* oklch */ color: oklch(37.6% 0.129 316.2);
Tailwind
colors: {
  custom: {
    50: '#8c6398',
    500: '#5b256e',
    950: '#000000',
  },
}
SCSS
$custom: #5b256e;
$custom-light: #8c6398;
$custom-dark: #000000;
JSON
{
  "hex": "#5b256e",
  "rgb": {
    "r": 91,
    "g": 37,
    "b": 110
  },
  "hsl": {
    "h": 284.384,
    "s": 49.66,
    "l": 28.824
  },
  "oklch": {
    "l": 0.37619,
    "c": 0.12881,
    "h": 316.2
  },
  "luminance": 0.04673
}

Semantic roles & 50–950 ramp

primary
#5B256E
secondary
#64A14E
accent
#D94F73
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0C050D
muted
#7D7A7E

Preview Lab

Preview with #5B256E

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

Preview Lab → · Contrast checker → · Palette generator →

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