#5B2E9C#5B2E9C

#5B2E9C is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.3% C 0.169 H 297.4°. Best body text is #FFFFFF at 9.07:1 contrast (WCAG AA passes).

Color values

HEX#5B2E9C
RGBrgb(91, 46, 156)
HSLhsl(265, 54%, 40%)
HSVhsv(265, 71%, 61%)
CMYKcmyk(41.7%, 70.5%, 0%, 38.8%)
CIE-LABlab(30.83, 43.95, -52.40)
CIE-LCHlch(30.83, 68.39, 309.99°)
OKLaboklab(42.31% 0.0775 -0.1497)
OKLCHoklch(42.31% 0.169 297.4)
XYZxyz(11.2906, 6.5782, 32.1209)
Luminance0.0658 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2E9C #6F9C2E
analogous
#2E389C #5B2E9C #922E9C
triadic
#5B2E9C #9C5B2E #2E9C5B
tetradic
#5B2E9C #9C2E38 #6F9C2E #2E9C92
square
#5B2E9C #9C2E38 #6F9C2E #2E9C92
split-complementary
#5B2E9C #9C922E #389C2E
monochromatic
#24123D #3F206D #5B2E9C #7740C7 #9970D5

Accessibility & contrast

On white

9.07
#5B2E9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B2E9C
9.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2E9C#FFFFFF#000000##FFFFFF
##5B2E9C1.009.072.329.07
#FFFFFF9.071.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00499F
Deuteranopia (green-blind)
#00479A
Tritanopia (blue-blind)
#4B4961
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5b2e9c;
/* rgb */ color: rgb(91, 46, 156);
/* oklch */ color: oklch(42.3% 0.169 297.4);
Tailwind
colors: {
  custom: {
    50: '#8f6aba',
    500: '#5b2e9c',
    950: '#000000',
  },
}
SCSS
$custom: #5b2e9c;
$custom-light: #8f6aba;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2e9c",
  "rgb": {
    "r": 91,
    "g": 46,
    "b": 156
  },
  "hsl": {
    "h": 264.545,
    "s": 54.455,
    "l": 39.608
  },
  "oklch": {
    "l": 0.42308,
    "c": 0.16856,
    "h": 297.4
  },
  "luminance": 0.06578
}

Semantic roles & 50–950 ramp

primary
#5B2E9C
secondary
#9ABC6A
accent
#DE4AA1
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5B2E9C

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

Preview Lab → · Contrast checker → · Palette generator →

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