#5D2BA8#5D2BA8

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

Color values

HEX#5D2BA8
RGBrgb(93, 43, 168)
HSLhsl(264, 59%, 41%)
HSVhsv(264, 74%, 66%)
CMYKcmyk(44.6%, 74.4%, 0%, 34.1%)
CIE-LABlab(31.54, 48.99, -58.49)
CIE-LCHlch(31.54, 76.30, 309.95°)
OKLaboklab(43.18% 0.0809 -0.1675)
OKLCHoklch(43.18% 0.186 295.8)
XYZxyz(12.4441, 6.8818, 37.7109)
Luminance0.0688 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D2BA8 #76A82B
analogous
#2B38A8 #5D2BA8 #9C2BA8
triadic
#5D2BA8 #A85D2B #2BA85D
tetradic
#5D2BA8 #A82B38 #76A82B #2BA89C
square
#5D2BA8 #A82B38 #76A82B #2BA89C
split-complementary
#5D2BA8 #A89C2B #38A82B
monochromatic
#271247 #421F77 #5D2BA8 #7A42CF #9C72DB

Accessibility & contrast

On white

8.84
#5D2BA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#5D2BA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D2BA8
8.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D2BA8#FFFFFF#000000##FFFFFF
##5D2BA81.008.842.388.84
#FFFFFF8.841.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BAC
Deuteranopia (green-blind)
#0048A6
Tritanopia (blue-blind)
#484C67
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5d2ba8;
/* rgb */ color: rgb(93, 43, 168);
/* oklch */ color: oklch(43.2% 0.186 295.8);
Tailwind
colors: {
  custom: {
    50: '#9269c3',
    500: '#5d2ba8',
    950: '#000000',
  },
}
SCSS
$custom: #5d2ba8;
$custom-light: #9269c3;
$custom-dark: #000000;
JSON
{
  "hex": "#5d2ba8",
  "rgb": {
    "r": 93,
    "g": 43,
    "b": 168
  },
  "hsl": {
    "h": 264,
    "s": 59.242,
    "l": 41.373
  },
  "oklch": {
    "l": 0.43175,
    "c": 0.18601,
    "h": 295.8
  },
  "luminance": 0.06882
}

Semantic roles & 50–950 ramp

primary
#5D2BA8
secondary
#A0C26C
accent
#E245A4
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5D2BA8

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

Preview Lab → · Contrast checker → · Palette generator →

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