#5B2F9C#5B2F9C

#5B2F9C is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.4% C 0.167 H 297.2°. Best body text is #FFFFFF at 9.01:1 contrast (WCAG AA passes).

Color values

HEX#5B2F9C
RGBrgb(91, 47, 156)
HSLhsl(264, 54%, 40%)
HSVhsv(264, 70%, 61%)
CMYKcmyk(41.7%, 69.9%, 0%, 38.8%)
CIE-LABlab(31.01, 43.43, -52.10)
CIE-LCHlch(31.01, 67.83, 309.81°)
OKLaboklab(42.44% 0.0765 -0.1488)
OKLCHoklch(42.44% 0.167 297.2)
XYZxyz(11.3301, 6.6573, 32.1341)
Luminance0.0666 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2F9C #709C2F
analogous
#2F3A9C #5B2F9C #922F9C
triadic
#5B2F9C #9C5B2F #2F9C5B
tetradic
#5B2F9C #9C2F3A #709C2F #2F9C92
square
#5B2F9C #9C2F3A #709C2F #2F9C92
split-complementary
#5B2F9C #9C922F #3A9C2F
monochromatic
#24133E #40216D #5B2F9C #7742C6 #9971D4

Accessibility & contrast

On white

9.01
#5B2F9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#5B2F9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2F9C
9.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2F9C#FFFFFF#000000##FFFFFF
##5B2F9C1.009.012.339.01
#FFFFFF9.011.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.011.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5b2f9c;
/* rgb */ color: rgb(91, 47, 156);
/* oklch */ color: oklch(42.4% 0.167 297.2);
Tailwind
colors: {
  custom: {
    50: '#8f6bba',
    500: '#5b2f9c',
    950: '#000000',
  },
}
SCSS
$custom: #5b2f9c;
$custom-light: #8f6bba;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2f9c",
  "rgb": {
    "r": 91,
    "g": 47,
    "b": 156
  },
  "hsl": {
    "h": 264.22,
    "s": 53.695,
    "l": 39.804
  },
  "oklch": {
    "l": 0.42441,
    "c": 0.16729,
    "h": 297.2
  },
  "luminance": 0.06657
}

Semantic roles & 50–950 ramp

primary
#5B2F9C
secondary
#9BBC6B
accent
#DD4BA2
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5B2F9C

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

Preview Lab → · Contrast checker → · Palette generator →

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