#5B2287#5B2287

#5B2287 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.1% C 0.160 H 305.9°. Best body text is #FFFFFF at 10.38:1 contrast (WCAG AA passes).

Color values

HEX#5B2287
RGBrgb(91, 34, 135)
HSLhsl(274, 60%, 33%)
HSVhsv(274, 75%, 53%)
CMYKcmyk(32.6%, 74.8%, 0%, 47.1%)
CIE-LABlab(27.07, 44.42, -45.57)
CIE-LCHlch(27.07, 63.64, 314.27°)
OKLaboklab(39.11% 0.0939 -0.1295)
OKLCHoklch(39.11% 0.16 305.9)
XYZxyz(9.2586, 5.1176, 23.4170)
Luminance0.0512 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2287 #4E8722
analogous
#282287 #5B2287 #872280
triadic
#5B2287 #875B22 #22875B
tetradic
#5B2287 #872822 #4E8722 #228087
square
#5B2287 #872822 #4E8722 #228087
split-complementary
#5B2287 #808722 #228728
monochromatic
#190925 #3A1656 #5B2287 #7C2EB8 #9A50D3

Accessibility & contrast

On white

10.38
#5B2287 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#5B2287 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2287
10.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2287#FFFFFF#000000##FFFFFF
##5B22871.0010.382.0210.38
#FFFFFF10.381.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8A
Deuteranopia (green-blind)
#004085
Tritanopia (blue-blind)
#533A52
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #5b2287;
/* rgb */ color: rgb(91, 34, 135);
/* oklch */ color: oklch(39.1% 0.160 305.9);
Tailwind
colors: {
  custom: {
    50: '#8e63ab',
    500: '#5b2287',
    950: '#000000',
  },
}
SCSS
$custom: #5b2287;
$custom-light: #8e63ab;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2287",
  "rgb": {
    "r": 91,
    "g": 34,
    "b": 135
  },
  "hsl": {
    "h": 273.861,
    "s": 59.763,
    "l": 33.137
  },
  "oklch": {
    "l": 0.39111,
    "c": 0.15997,
    "h": 305.9
  },
  "luminance": 0.05117
}

Semantic roles & 50–950 ramp

primary
#5B2287
secondary
#7CB74E
accent
#E3458A
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0510
muted
#7E7A7F

Preview Lab

Preview with #5B2287

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

Preview Lab → · Contrast checker → · Palette generator →

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