#5B2B9F#5B2B9F

#5B2B9F is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.2% C 0.176 H 297.1°. Best body text is #FFFFFF at 9.17:1 contrast (WCAG AA passes).

Color values

HEX#5B2B9F
RGBrgb(91, 43, 159)
HSLhsl(265, 57%, 40%)
HSVhsv(265, 73%, 62%)
CMYKcmyk(42.8%, 73%, 0%, 37.6%)
CIE-LABlab(30.53, 46.26, -54.71)
CIE-LCHlch(30.53, 71.64, 310.22°)
OKLaboklab(42.18% 0.0799 -0.1564)
OKLCHoklch(42.18% 0.176 297.1)
XYZxyz(11.4346, 6.4549, 33.4376)
Luminance0.0645 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2B9F #6F9F2B
analogous
#2B359F #5B2B9F #952B9F
triadic
#5B2B9F #9F5B2B #2B9F5B
tetradic
#5B2B9F #9F2B35 #6F9F2B #2B9F95
square
#5B2B9F #9F2B35 #6F9F2B #2B9F95
split-complementary
#5B2B9F #9F952B #359F2B
monochromatic
#24113F #3F1E6F #5B2B9F #773DCA #996DD7

Accessibility & contrast

On white

9.17
#5B2B9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#5B2B9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2B9F
9.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2B9F#FFFFFF#000000##FFFFFF
##5B2B9F1.009.172.299.17
#FFFFFF9.171.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A2
Deuteranopia (green-blind)
#00469D
Tritanopia (blue-blind)
#494862
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5b2b9f;
/* rgb */ color: rgb(91, 43, 159);
/* oklch */ color: oklch(42.2% 0.176 297.1);
Tailwind
colors: {
  custom: {
    50: '#9069bc',
    500: '#5b2b9f',
    950: '#000000',
  },
}
SCSS
$custom: #5b2b9f;
$custom-light: #9069bc;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2b9f",
  "rgb": {
    "r": 91,
    "g": 43,
    "b": 159
  },
  "hsl": {
    "h": 264.828,
    "s": 57.426,
    "l": 39.608
  },
  "oklch": {
    "l": 0.42175,
    "c": 0.17568,
    "h": 297.1
  },
  "luminance": 0.06455
}

Semantic roles & 50–950 ramp

primary
#5B2B9F
secondary
#9ABE67
accent
#E147A1
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5B2B9F

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

Preview Lab → · Contrast checker → · Palette generator →

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