#5B2385#5B2385

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

Color values

HEX#5B2385
RGBrgb(91, 35, 133)
HSLhsl(274, 58%, 33%)
HSVhsv(274, 74%, 52%)
CMYKcmyk(31.6%, 73.7%, 0%, 47.8%)
CIE-LABlab(27.07, 43.48, -44.31)
CIE-LCHlch(27.07, 62.08, 314.46°)
OKLaboklab(39.07% 0.0932 -0.1258)
OKLCHoklch(39.07% 0.157 306.5)
XYZxyz(9.1481, 5.1198, 22.6920)
Luminance0.0512 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2385 #4D8523
analogous
#2A2385 #5B2385 #85237E
triadic
#5B2385 #855B23 #23855B
tetradic
#5B2385 #852A23 #4D8523 #237E85
square
#5B2385 #852A23 #4D8523 #237E85
split-complementary
#5B2385 #7E8523 #23852A
monochromatic
#190924 #3A1655 #5B2385 #7C30B5 #9A51D1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5B2385#FFFFFF#000000##FFFFFF
##5B23851.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)
#003E88
Deuteranopia (green-blind)
#004083
Tritanopia (blue-blind)
#543A52
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #5b2385;
/* rgb */ color: rgb(91, 35, 133);
/* oklch */ color: oklch(39.1% 0.157 306.5);
Tailwind
colors: {
  custom: {
    50: '#8e63a9',
    500: '#5b2385',
    950: '#000000',
  },
}
SCSS
$custom: #5b2385;
$custom-light: #8e63a9;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2385",
  "rgb": {
    "r": 91,
    "g": 35,
    "b": 133
  },
  "hsl": {
    "h": 274.286,
    "s": 58.333,
    "l": 32.941
  },
  "oklch": {
    "l": 0.39066,
    "c": 0.15658,
    "h": 306.5
  },
  "luminance": 0.0512
}

Semantic roles & 50–950 ramp

primary
#5B2385
secondary
#7BB54F
accent
#E24689
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5B2385

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

Preview Lab → · Contrast checker → · Palette generator →

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