#5D2EA5#5D2EA5

#5D2EA5 is a dark, vivid violet. Relative luminance 0.070; OKLCH L 43.3% C 0.179 H 296.1°. Best body text is #FFFFFF at 8.75:1 contrast (WCAG AA passes).

Color values

HEX#5D2EA5
RGBrgb(93, 46, 165)
HSLhsl(264, 56%, 41%)
HSVhsv(264, 72%, 65%)
CMYKcmyk(43.6%, 72.1%, 0%, 35.3%)
CIE-LABlab(31.80, 46.74, -56.26)
CIE-LCHlch(31.80, 73.14, 309.72°)
OKLaboklab(43.28% 0.0788 -0.1609)
OKLCHoklch(43.28% 0.179 296.1)
XYZxyz(12.2809, 6.9975, 36.2936)
Luminance0.0700 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D2EA5 #76A52E
analogous
#2E3BA5 #5D2EA5 #992EA5
triadic
#5D2EA5 #A55D2E #2EA55D
tetradic
#5D2EA5 #A52E3B #76A52E #2EA599
square
#5D2EA5 #A52E3B #76A52E #2EA599
split-complementary
#5D2EA5 #A5992E #3BA52E
monochromatic
#271345 #422175 #5D2EA5 #7A45CB #9C75D8

Accessibility & contrast

On white

8.75
#5D2EA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#5D2EA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D2EA5
8.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D2EA5#FFFFFF#000000##FFFFFF
##5D2EA51.008.752.408.75
#FFFFFF8.751.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA8
Deuteranopia (green-blind)
#0049A3
Tritanopia (blue-blind)
#4A4C66
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5d2ea5;
/* rgb */ color: rgb(93, 46, 165);
/* oklch */ color: oklch(43.3% 0.179 296.1);
Tailwind
colors: {
  custom: {
    50: '#916bc1',
    500: '#5d2ea5',
    950: '#000000',
  },
}
SCSS
$custom: #5d2ea5;
$custom-light: #916bc1;
$custom-dark: #000000;
JSON
{
  "hex": "#5d2ea5",
  "rgb": {
    "r": 93,
    "g": 46,
    "b": 165
  },
  "hsl": {
    "h": 263.697,
    "s": 56.398,
    "l": 41.373
  },
  "oklch": {
    "l": 0.43284,
    "c": 0.17916,
    "h": 296.1
  },
  "luminance": 0.06998
}

Semantic roles & 50–950 ramp

primary
#5D2EA5
secondary
#A0C06F
accent
#E048A4
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #5D2EA5

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

Preview Lab → · Contrast checker → · Palette generator →

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