#5D2BA5#5D2BA5

#5D2BA5 is a dark, vivid violet. Relative luminance 0.068; OKLCH L 42.9% C 0.183 H 296.5°. Best body text is #FFFFFF at 8.92:1 contrast (WCAG AA passes).

Color values

HEX#5D2BA5
RGBrgb(93, 43, 165)
HSLhsl(265, 59%, 41%)
HSVhsv(265, 74%, 65%)
CMYKcmyk(43.6%, 73.9%, 0%, 35.3%)
CIE-LABlab(31.28, 48.20, -57.11)
CIE-LCHlch(31.28, 74.73, 310.17°)
OKLaboklab(42.92% 0.0816 -0.1634)
OKLCHoklch(42.92% 0.183 296.5)
XYZxyz(12.1678, 6.7713, 36.2559)
Luminance0.0677 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D2BA5 #73A52B
analogous
#2B36A5 #5D2BA5 #9A2BA5
triadic
#5D2BA5 #A55D2B #2BA55D
tetradic
#5D2BA5 #A52B36 #73A52B #2BA59A
square
#5D2BA5 #A52B36 #73A52B #2BA59A
split-complementary
#5D2BA5 #A59A2B #36A52B
monochromatic
#261244 #421E74 #5D2BA5 #7A40CD #9C71DA

Accessibility & contrast

On white

8.92
#5D2BA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#5D2BA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D2BA5
8.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D2BA5#FFFFFF#000000##FFFFFF
##5D2BA51.008.922.358.92
#FFFFFF8.921.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA9
Deuteranopia (green-blind)
#0048A3
Tritanopia (blue-blind)
#4A4B66
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5d2ba5;
/* rgb */ color: rgb(93, 43, 165);
/* oklch */ color: oklch(42.9% 0.183 296.5);
Tailwind
colors: {
  custom: {
    50: '#9269c1',
    500: '#5d2ba5',
    950: '#000000',
  },
}
SCSS
$custom: #5d2ba5;
$custom-light: #9269c1;
$custom-dark: #000000;
JSON
{
  "hex": "#5d2ba5",
  "rgb": {
    "r": 93,
    "g": 43,
    "b": 165
  },
  "hsl": {
    "h": 264.59,
    "s": 58.654,
    "l": 40.784
  },
  "oklch": {
    "l": 0.42915,
    "c": 0.18266,
    "h": 296.5
  },
  "luminance": 0.06772
}

Semantic roles & 50–950 ramp

primary
#5D2BA5
secondary
#9EC16B
accent
#E246A2
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #5D2BA5

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

Preview Lab → · Contrast checker → · Palette generator →

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