#5B2BA5#5B2BA5

#5B2BA5 is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.7% C 0.182 H 295.5°. Best body text is #FFFFFF at 9.00:1 contrast (WCAG AA passes).

Color values

HEX#5B2BA5
RGBrgb(91, 43, 165)
HSLhsl(264, 59%, 41%)
HSVhsv(264, 74%, 65%)
CMYKcmyk(44.8%, 73.9%, 0%, 35.3%)
CIE-LABlab(31.04, 47.85, -57.51)
CIE-LCHlch(31.04, 74.82, 309.76°)
OKLaboklab(42.69% 0.0786 -0.1647)
OKLCHoklch(42.69% 0.182 295.5)
XYZxyz(11.9680, 6.6682, 36.2465)
Luminance0.0667 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2BA5 #75A52B
analogous
#2B38A5 #5B2BA5 #982BA5
triadic
#5B2BA5 #A55B2B #2BA55B
tetradic
#5B2BA5 #A52B38 #75A52B #2BA598
square
#5B2BA5 #A52B38 #75A52B #2BA598
split-complementary
#5B2BA5 #A5982B #38A52B
monochromatic
#251244 #401E74 #5B2BA5 #7840CD #9A71DA

Accessibility & contrast

On white

9.00
#5B2BA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B2BA5
9.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2BA5#FFFFFF#000000##FFFFFF
##5B2BA51.009.002.339.00
#FFFFFF9.001.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA9
Deuteranopia (green-blind)
#0047A3
Tritanopia (blue-blind)
#474B66
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5b2ba5;
/* rgb */ color: rgb(91, 43, 165);
/* oklch */ color: oklch(42.7% 0.182 295.5);
Tailwind
colors: {
  custom: {
    50: '#9069c1',
    500: '#5b2ba5',
    950: '#000000',
  },
}
SCSS
$custom: #5b2ba5;
$custom-light: #9069c1;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2ba5",
  "rgb": {
    "r": 91,
    "g": 43,
    "b": 165
  },
  "hsl": {
    "h": 263.607,
    "s": 58.654,
    "l": 40.784
  },
  "oklch": {
    "l": 0.42691,
    "c": 0.18248,
    "h": 295.5
  },
  "luminance": 0.06669
}

Semantic roles & 50–950 ramp

primary
#5B2BA5
secondary
#9FC16B
accent
#E246A5
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5B2BA5

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

Preview Lab → · Contrast checker → · Palette generator →

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