#5B2DA8#5B2DA8

#5B2DA8 is a dark, vivid violet. Relative luminance 0.069; OKLCH L 43.2% C 0.184 H 294.5°. Best body text is #FFFFFF at 8.80:1 contrast (WCAG AA passes).

Color values

HEX#5B2DA8
RGBrgb(91, 45, 168)
HSLhsl(262, 58%, 42%)
HSVhsv(262, 73%, 66%)
CMYKcmyk(45.8%, 73.2%, 0%, 34.1%)
CIE-LABlab(31.64, 47.68, -58.33)
CIE-LCHlch(31.64, 75.34, 309.26°)
OKLaboklab(43.2% 0.0761 -0.1671)
OKLCHoklch(43.2% 0.184 294.5)
XYZxyz(12.3187, 6.9277, 37.7263)
Luminance0.0693 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2DA8 #7AA82D
analogous
#2D3DA8 #5B2DA8 #992DA8
triadic
#5B2DA8 #A85B2D #2DA85B
tetradic
#5B2DA8 #A82D3D #7AA82D #2DA899
square
#5B2DA8 #A82D3D #7AA82D #2DA899
split-complementary
#5B2DA8 #A8992D #3DA82D
monochromatic
#271347 #412078 #5B2DA8 #7845CD #9B75DA

Accessibility & contrast

On white

8.80
#5B2DA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#5B2DA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2DA8
8.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2DA8#FFFFFF#000000##FFFFFF
##5B2DA81.008.802.398.80
#FFFFFF8.801.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CAC
Deuteranopia (green-blind)
#0048A6
Tritanopia (blue-blind)
#454D68
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5b2da8;
/* rgb */ color: rgb(91, 45, 168);
/* oklch */ color: oklch(43.2% 0.184 294.5);
Tailwind
colors: {
  custom: {
    50: '#916ac3',
    500: '#5b2da8',
    950: '#000000',
  },
}
SCSS
$custom: #5b2da8;
$custom-light: #916ac3;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2da8",
  "rgb": {
    "r": 91,
    "g": 45,
    "b": 168
  },
  "hsl": {
    "h": 262.439,
    "s": 57.746,
    "l": 41.765
  },
  "oklch": {
    "l": 0.43196,
    "c": 0.1836,
    "h": 294.5
  },
  "luminance": 0.06928
}

Semantic roles & 50–950 ramp

primary
#5B2DA8
secondary
#A3C26F
accent
#E147A7
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #5B2DA8

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

Preview Lab → · Contrast checker → · Palette generator →

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