#5B2286#5B2286

#5B2286 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.0% C 0.159 H 306.3°. Best body text is #FFFFFF at 10.41:1 contrast (WCAG AA passes).

Color values

HEX#5B2286
RGBrgb(91, 34, 134)
HSLhsl(274, 60%, 33%)
HSVhsv(274, 75%, 53%)
CMYKcmyk(32.1%, 74.6%, 0%, 47.5%)
CIE-LABlab(26.99, 44.18, -45.08)
CIE-LCHlch(26.99, 63.12, 314.43°)
OKLaboklab(39.03% 0.0941 -0.1281)
OKLCHoklch(39.03% 0.159 306.3)
XYZxyz(9.1885, 5.0895, 23.0479)
Luminance0.0509 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2286 #4D8622
analogous
#292286 #5B2286 #86227F
triadic
#5B2286 #865B22 #22865B
tetradic
#5B2286 #862922 #4D8622 #227F86
square
#5B2286 #862922 #4D8622 #227F86
split-complementary
#5B2286 #7F8622 #228629
monochromatic
#190924 #3A1655 #5B2286 #7C2EB7 #9A50D3

Accessibility & contrast

On white

10.41
#5B2286 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B2286
10.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2286#FFFFFF#000000##FFFFFF
##5B22861.0010.412.0210.41
#FFFFFF10.411.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.411.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5b2286;
/* rgb */ color: rgb(91, 34, 134);
/* oklch */ color: oklch(39.0% 0.159 306.3);
Tailwind
colors: {
  custom: {
    50: '#8e63aa',
    500: '#5b2286',
    950: '#000000',
  },
}
SCSS
$custom: #5b2286;
$custom-light: #8e63aa;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2286",
  "rgb": {
    "r": 91,
    "g": 34,
    "b": 134
  },
  "hsl": {
    "h": 274.2,
    "s": 59.524,
    "l": 32.941
  },
  "oklch": {
    "l": 0.3903,
    "c": 0.15889,
    "h": 306.3
  },
  "luminance": 0.05089
}

Semantic roles & 50–950 ramp

primary
#5B2286
secondary
#7BB64E
accent
#E34589
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0510
muted
#7E7A7F

Preview Lab

Preview with #5B2286

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

Preview Lab → · Contrast checker → · Palette generator →

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