#5B2285#5B2285

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

Color values

HEX#5B2285
RGBrgb(91, 34, 133)
HSLhsl(275, 59%, 33%)
HSVhsv(275, 74%, 52%)
CMYKcmyk(31.6%, 74.4%, 0%, 47.8%)
CIE-LABlab(26.91, 43.94, -44.58)
CIE-LCHlch(26.91, 62.59, 314.59°)
OKLaboklab(38.95% 0.0942 -0.1266)
OKLCHoklch(38.95% 0.158 306.7)
XYZxyz(9.1191, 5.0618, 22.6824)
Luminance0.0506 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2285 #4C8522
analogous
#292285 #5B2285 #85227E
triadic
#5B2285 #855B22 #22855B
tetradic
#5B2285 #852922 #4C8522 #227E85
square
#5B2285 #852922 #4C8522 #227E85
split-complementary
#5B2285 #7E8522 #228529
monochromatic
#180924 #3A1654 #5B2285 #7C2EB6 #9B4FD2

Accessibility & contrast

On white

10.44
#5B2285 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#5B2285 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2285
10.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2285#FFFFFF#000000##FFFFFF
##5B22851.0010.442.0110.44
#FFFFFF10.441.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E88
Deuteranopia (green-blind)
#004083
Tritanopia (blue-blind)
#543951
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #5b2285;
/* rgb */ color: rgb(91, 34, 133);
/* oklch */ color: oklch(39.0% 0.158 306.7);
Tailwind
colors: {
  custom: {
    50: '#8e63a9',
    500: '#5b2285',
    950: '#000000',
  },
}
SCSS
$custom: #5b2285;
$custom-light: #8e63a9;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2285",
  "rgb": {
    "r": 91,
    "g": 34,
    "b": 133
  },
  "hsl": {
    "h": 274.545,
    "s": 59.281,
    "l": 32.745
  },
  "oklch": {
    "l": 0.3895,
    "c": 0.15783,
    "h": 306.7
  },
  "luminance": 0.05062
}

Semantic roles & 50–950 ramp

primary
#5B2285
secondary
#7AB64D
accent
#E24588
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0510
muted
#7E7A7F

Preview Lab

Preview with #5B2285

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

Preview Lab → · Contrast checker → · Palette generator →

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