#5B226E#5B226E

#5B226E is a dark, vivid purple. Relative luminance 0.045; OKLCH L 37.2% C 0.133 H 316.6°. Best body text is #FFFFFF at 11.06:1 contrast (WCAG AA passes).

Color values

HEX#5B226E
RGBrgb(91, 34, 110)
HSLhsl(285, 53%, 28%)
HSVhsv(285, 69%, 43%)
CMYKcmyk(17.3%, 69.1%, 0%, 56.9%)
CIE-LABlab(25.24, 38.58, -32.67)
CIE-LCHlch(25.24, 50.56, 319.75°)
OKLaboklab(37.23% 0.0968 -0.0916)
OKLCHoklch(37.23% 0.133 316.6)
XYZxyz(7.7005, 4.4943, 15.2107)
Luminance0.0449 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B226E #356E22
analogous
#35226E #5B226E #6E225B
triadic
#5B226E #6E5B22 #226E5B
tetradic
#5B226E #6E3522 #356E22 #225B6E
square
#5B226E #6E3522 #356E22 #225B6E
split-complementary
#5B226E #5B6E22 #226E35
monochromatic
#130717 #34143F #5B226E #82309D #A545C5

Accessibility & contrast

On white

11.06
#5B226E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#5B226E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B226E
11.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B226E#FFFFFF#000000##FFFFFF
##5B226E1.0011.061.9011.06
#FFFFFF11.061.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#033870
Deuteranopia (green-blind)
#233E6C
Tritanopia (blue-blind)
#5A3045
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #5b226e;
/* rgb */ color: rgb(91, 34, 110);
/* oklch */ color: oklch(37.2% 0.133 316.6);
Tailwind
colors: {
  custom: {
    50: '#8c6298',
    500: '#5b226e',
    950: '#000000',
  },
}
SCSS
$custom: #5b226e;
$custom-light: #8c6298;
$custom-dark: #000000;
JSON
{
  "hex": "#5b226e",
  "rgb": {
    "r": 91,
    "g": 34,
    "b": 110
  },
  "hsl": {
    "h": 285,
    "s": 52.778,
    "l": 28.235
  },
  "oklch": {
    "l": 0.37229,
    "c": 0.13333,
    "h": 316.6
  },
  "luminance": 0.04494
}

Semantic roles & 50–950 ramp

primary
#5B226E
secondary
#60A14A
accent
#DC4C70
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0C050E
muted
#7D7A7E

Preview Lab

Preview with #5B226E

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

Preview Lab → · Contrast checker → · Palette generator →

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