#5B2290#5B2290

#5B2290 is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.9% C 0.170 H 302.8°. Best body text is #FFFFFF at 10.11:1 contrast (WCAG AA passes).

Color values

HEX#5B2290
RGBrgb(91, 34, 144)
HSLhsl(271, 62%, 35%)
HSVhsv(271, 76%, 56%)
CMYKcmyk(36.8%, 76.4%, 0%, 43.5%)
CIE-LABlab(27.80, 46.63, -49.98)
CIE-LCHlch(27.80, 68.35, 313.01°)
OKLaboklab(39.85% 0.092 -0.1425)
OKLCHoklch(39.85% 0.17 302.8)
XYZxyz(9.9193, 5.3818, 26.8964)
Luminance0.0538 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2290 #579022
analogous
#242290 #5B2290 #90228E
triadic
#5B2290 #905B22 #22905B
tetradic
#5B2290 #902422 #579022 #228E90
square
#5B2290 #902422 #579022 #228E90
split-complementary
#5B2290 #8E9022 #229024
monochromatic
#1C0B2D #3C165E #5B2290 #7A2EC2 #9955D7

Accessibility & contrast

On white

10.11
#5B2290 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#5B2290 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2290
10.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2290#FFFFFF#000000##FFFFFF
##5B22901.0010.112.0810.11
#FFFFFF10.111.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004193
Deuteranopia (green-blind)
#00418E
Tritanopia (blue-blind)
#503E57
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5b2290;
/* rgb */ color: rgb(91, 34, 144);
/* oklch */ color: oklch(39.9% 0.170 302.8);
Tailwind
colors: {
  custom: {
    50: '#8f63b1',
    500: '#5b2290',
    950: '#000000',
  },
}
SCSS
$custom: #5b2290;
$custom-light: #8f63b1;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2290",
  "rgb": {
    "r": 91,
    "g": 34,
    "b": 144
  },
  "hsl": {
    "h": 271.091,
    "s": 61.798,
    "l": 34.902
  },
  "oklch": {
    "l": 0.39853,
    "c": 0.16959,
    "h": 302.8
  },
  "luminance": 0.05382
}

Semantic roles & 50–950 ramp

primary
#5B2290
secondary
#85BB53
accent
#E54391
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5B2290

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

Preview Lab → · Contrast checker → · Palette generator →

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