#5B2F89#5B2F89

#5B2F89 is a dark, vivid violet. Relative luminance 0.061; OKLCH L 40.9% C 0.145 H 303.0°. Best body text is #FFFFFF at 9.49:1 contrast (WCAG AA passes).

Color values

HEX#5B2F89
RGBrgb(91, 47, 137)
HSLhsl(269, 49%, 36%)
HSVhsv(269, 66%, 54%)
CMYKcmyk(33.6%, 65.7%, 0%, 46.3%)
CIE-LABlab(29.57, 38.39, -42.77)
CIE-LCHlch(29.57, 57.47, 311.91°)
OKLaboklab(40.95% 0.0788 -0.1213)
OKLCHoklch(40.95% 0.145 303)
XYZxyz(9.8452, 6.0633, 24.3137)
Luminance0.0606 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2F89 #5D892F
analogous
#2F3089 #5B2F89 #882F89
triadic
#5B2F89 #895B2F #2F895B
tetradic
#5B2F89 #892F30 #5D892F #2F8988
square
#5B2F89 #892F30 #5D892F #2F8988
split-complementary
#5B2F89 #89882F #30892F
monochromatic
#1E102E #3D1F5B #5B2F89 #793FB7 #9867CB

Accessibility & contrast

On white

9.49
#5B2F89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#5B2F89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2F89
9.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2F89#FFFFFF#000000##FFFFFF
##5B2F891.009.492.219.49
#FFFFFF9.491.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00458C
Deuteranopia (green-blind)
#124587
Tritanopia (blue-blind)
#524257
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5b2f89;
/* rgb */ color: rgb(91, 47, 137);
/* oklch */ color: oklch(40.9% 0.145 303.0);
Tailwind
colors: {
  custom: {
    50: '#8d6aac',
    500: '#5b2f89',
    950: '#000000',
  },
}
SCSS
$custom: #5b2f89;
$custom-light: #8d6aac;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2f89",
  "rgb": {
    "r": 91,
    "g": 47,
    "b": 137
  },
  "hsl": {
    "h": 269.333,
    "s": 48.913,
    "l": 36.078
  },
  "oklch": {
    "l": 0.4095,
    "c": 0.1447,
    "h": 303
  },
  "luminance": 0.06063
}

Semantic roles & 50–950 ramp

primary
#5B2F89
secondary
#8BB262
accent
#D84F95
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0D0710
muted
#7D7A7F

Preview Lab

Preview with #5B2F89

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

Preview Lab → · Contrast checker → · Palette generator →

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