#5B2297#5B2297

#5B2297 is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.5% C 0.177 H 300.6°. Best body text is #FFFFFF at 9.90:1 contrast (WCAG AA passes).

Color values

HEX#5B2297
RGBrgb(91, 34, 151)
HSLhsl(269, 63%, 36%)
HSVhsv(269, 77%, 59%)
CMYKcmyk(39.7%, 77.5%, 0%, 40.8%)
CIE-LABlab(28.39, 48.37, -53.33)
CIE-LCHlch(28.39, 72.00, 312.21°)
OKLaboklab(40.45% 0.0902 -0.1523)
OKLCHoklch(40.45% 0.177 300.6)
XYZxyz(10.4709, 5.6025, 29.8019)
Luminance0.0560 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2297 #5E9722
analogous
#222497 #5B2297 #962297
triadic
#5B2297 #975B22 #22975B
tetradic
#5B2297 #972224 #5E9722 #229796
square
#5B2297 #972224 #5E9722 #229796
split-complementary
#5B2297 #979622 #249722
monochromatic
#1F0C33 #3D1765 #5B2297 #792DC9 #985ADA

Accessibility & contrast

On white

9.90
#5B2297 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#5B2297 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2297
9.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2297#FFFFFF#000000##FFFFFF
##5B22971.009.902.129.90
#FFFFFF9.901.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429A
Deuteranopia (green-blind)
#004295
Tritanopia (blue-blind)
#4D415B
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5b2297;
/* rgb */ color: rgb(91, 34, 151);
/* oklch */ color: oklch(40.5% 0.177 300.6);
Tailwind
colors: {
  custom: {
    50: '#8f64b6',
    500: '#5b2297',
    950: '#000000',
  },
}
SCSS
$custom: #5b2297;
$custom-light: #8f64b6;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2297",
  "rgb": {
    "r": 91,
    "g": 34,
    "b": 151
  },
  "hsl": {
    "h": 269.231,
    "s": 63.243,
    "l": 36.275
  },
  "oklch": {
    "l": 0.40452,
    "c": 0.17704,
    "h": 300.6
  },
  "luminance": 0.05603
}

Semantic roles & 50–950 ramp

primary
#5B2297
secondary
#8CBE57
accent
#E64296
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5B2297

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

Preview Lab → · Contrast checker → · Palette generator →

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