#5B2289#5B2289

#5B2289 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.3% C 0.162 H 305.2°. Best body text is #FFFFFF at 10.32:1 contrast (WCAG AA passes).

Color values

HEX#5B2289
RGBrgb(91, 34, 137)
HSLhsl(273, 60%, 34%)
HSVhsv(273, 75%, 54%)
CMYKcmyk(33.6%, 75.2%, 0%, 46.3%)
CIE-LABlab(27.23, 44.91, -46.56)
CIE-LCHlch(27.23, 64.69, 313.97°)
OKLaboklab(39.27% 0.0935 -0.1324)
OKLCHoklch(39.27% 0.162 305.2)
XYZxyz(9.4008, 5.1744, 24.1656)
Luminance0.0517 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2289 #508922
analogous
#272289 #5B2289 #892283
triadic
#5B2289 #895B22 #22895B
tetradic
#5B2289 #892722 #508922 #228389
square
#5B2289 #892722 #508922 #228389
split-complementary
#5B2289 #838922 #228927
monochromatic
#1A0A27 #3A1658 #5B2289 #7C2EBA #9A51D4

Accessibility & contrast

On white

10.32
#5B2289 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#5B2289 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2289
10.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2289#FFFFFF#000000##FFFFFF
##5B22891.0010.322.0310.32
#FFFFFF10.321.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8C
Deuteranopia (green-blind)
#004087
Tritanopia (blue-blind)
#523B54
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #5b2289;
/* rgb */ color: rgb(91, 34, 137);
/* oklch */ color: oklch(39.3% 0.162 305.2);
Tailwind
colors: {
  custom: {
    50: '#8e63ac',
    500: '#5b2289',
    950: '#000000',
  },
}
SCSS
$custom: #5b2289;
$custom-light: #8e63ac;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2289",
  "rgb": {
    "r": 91,
    "g": 34,
    "b": 137
  },
  "hsl": {
    "h": 273.204,
    "s": 60.234,
    "l": 33.529
  },
  "oklch": {
    "l": 0.39273,
    "c": 0.1621,
    "h": 305.2
  },
  "luminance": 0.05174
}

Semantic roles & 50–950 ramp

primary
#5B2289
secondary
#7EB84F
accent
#E3448B
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0510
muted
#7E7A7F

Preview Lab

Preview with #5B2289

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

Preview Lab → · Contrast checker → · Palette generator →

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