#5B2267#5B2267

#5B2267 is a dark, vivid purple. Relative luminance 0.043; OKLCH L 36.8% C 0.126 H 320.3°. Best body text is #FFFFFF at 11.23:1 contrast (WCAG AA passes).

Color values

HEX#5B2267
RGBrgb(91, 34, 103)
HSLhsl(290, 50%, 27%)
HSVhsv(290, 67%, 40%)
CMYKcmyk(11.7%, 67%, 0%, 59.6%)
CIE-LABlab(24.79, 37.05, -28.86)
CIE-LCHlch(24.79, 46.97, 322.08°)
OKLaboklab(36.76% 0.0969 -0.0805)
OKLCHoklch(36.76% 0.126 320.3)
XYZxyz(7.3343, 4.3478, 13.2822)
Luminance0.0435 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2267 #2E6722
analogous
#392267 #5B2267 #672251
triadic
#5B2267 #675B22 #22675B
tetradic
#5B2267 #673922 #2E6722 #225167
square
#5B2267 #673922 #2E6722 #225167
split-complementary
#5B2267 #516722 #226739
monochromatic
#140817 #321339 #5B2267 #843195 #AB43C1

Accessibility & contrast

On white

11.23
#5B2267 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#5B2267 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2267
11.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2267#FFFFFF#000000##FFFFFF
##5B22671.0011.231.8711.23
#FFFFFF11.231.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#103769
Deuteranopia (green-blind)
#283D65
Tritanopia (blue-blind)
#5C2D41
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #5b2267;
/* rgb */ color: rgb(91, 34, 103);
/* oklch */ color: oklch(36.8% 0.126 320.3);
Tailwind
colors: {
  custom: {
    50: '#8c6293',
    500: '#5b2267',
    950: '#000000',
  },
}
SCSS
$custom: #5b2267;
$custom-light: #8c6293;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2267",
  "rgb": {
    "r": 91,
    "g": 34,
    "b": 103
  },
  "hsl": {
    "h": 289.565,
    "s": 50.365,
    "l": 26.863
  },
  "oklch": {
    "l": 0.36756,
    "c": 0.12602,
    "h": 320.3
  },
  "luminance": 0.04347
}

Semantic roles & 50–950 ramp

primary
#5B2267
secondary
#589B4A
accent
#DA4E66
background
#F8F5F9
surface
#F0EAF1
border
#CBC6CB
text
#0C050D
muted
#7D797E

Preview Lab

Preview with #5B2267

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

Preview Lab → · Contrast checker → · Palette generator →

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