#5B2D9F#5B2D9F

#5B2D9F is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.4% C 0.173 H 296.7°. Best body text is #FFFFFF at 9.05:1 contrast (WCAG AA passes).

Color values

HEX#5B2D9F
RGBrgb(91, 45, 159)
HSLhsl(264, 56%, 40%)
HSVhsv(264, 72%, 62%)
CMYKcmyk(42.8%, 71.7%, 0%, 37.6%)
CIE-LABlab(30.89, 45.26, -54.13)
CIE-LCHlch(30.89, 70.56, 309.90°)
OKLaboklab(42.43% 0.078 -0.1547)
OKLCHoklch(42.43% 0.173 296.7)
XYZxyz(11.5091, 6.6039, 33.4625)
Luminance0.0660 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2D9F #719F2D
analogous
#2D389F #5B2D9F #942D9F
triadic
#5B2D9F #9F5B2D #2D9F5B
tetradic
#5B2D9F #9F2D38 #719F2D #2D9F94
square
#5B2D9F #9F2D38 #719F2D #2D9F94
split-complementary
#5B2D9F #9F942D #389F2D
monochromatic
#241240 #40206F #5B2D9F #7740C9 #9970D6

Accessibility & contrast

On white

9.05
#5B2D9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#5B2D9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2D9F
9.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2D9F#FFFFFF#000000##FFFFFF
##5B2D9F1.009.052.329.05
#FFFFFF9.051.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A2
Deuteranopia (green-blind)
#00479D
Tritanopia (blue-blind)
#494963
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5b2d9f;
/* rgb */ color: rgb(91, 45, 159);
/* oklch */ color: oklch(42.4% 0.173 296.7);
Tailwind
colors: {
  custom: {
    50: '#906abc',
    500: '#5b2d9f',
    950: '#000000',
  },
}
SCSS
$custom: #5b2d9f;
$custom-light: #906abc;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2d9f",
  "rgb": {
    "r": 91,
    "g": 45,
    "b": 159
  },
  "hsl": {
    "h": 264.211,
    "s": 55.882,
    "l": 40
  },
  "oklch": {
    "l": 0.42427,
    "c": 0.17328,
    "h": 296.7
  },
  "luminance": 0.06604
}

Semantic roles & 50–950 ramp

primary
#5B2D9F
secondary
#9CBE6A
accent
#DF49A2
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5B2D9F

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

Preview Lab → · Contrast checker → · Palette generator →

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