#5D2EA8#5D2EA8

#5D2EA8 is a dark, vivid violet. Relative luminance 0.071; OKLCH L 43.5% C 0.183 H 295.3°. Best body text is #FFFFFF at 8.67:1 contrast (WCAG AA passes).

Color values

HEX#5D2EA8
RGBrgb(93, 46, 168)
HSLhsl(263, 57%, 42%)
HSVhsv(263, 73%, 66%)
CMYKcmyk(44.6%, 72.6%, 0%, 34.1%)
CIE-LABlab(32.05, 47.54, -57.65)
CIE-LCHlch(32.05, 74.72, 309.51°)
OKLaboklab(43.54% 0.0781 -0.165)
OKLCHoklch(43.54% 0.183 295.3)
XYZxyz(12.5572, 7.1080, 37.7486)
Luminance0.0711 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D2EA8 #79A82E
analogous
#2E3CA8 #5D2EA8 #9A2EA8
triadic
#5D2EA8 #A85D2E #2EA85D
tetradic
#5D2EA8 #A82E3C #79A82E #2EA89A
square
#5D2EA8 #A82E3C #79A82E #2EA89A
split-complementary
#5D2EA8 #A89A2E #3CA82E
monochromatic
#281448 #422178 #5D2EA8 #7A47CD #9D77DA

Accessibility & contrast

On white

8.67
#5D2EA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#5D2EA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D2EA8
8.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D2EA8#FFFFFF#000000##FFFFFF
##5D2EA81.008.672.428.67
#FFFFFF8.671.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CAC
Deuteranopia (green-blind)
#004AA6
Tritanopia (blue-blind)
#484D68
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5d2ea8;
/* rgb */ color: rgb(93, 46, 168);
/* oklch */ color: oklch(43.5% 0.183 295.3);
Tailwind
colors: {
  custom: {
    50: '#926bc3',
    500: '#5d2ea8',
    950: '#000000',
  },
}
SCSS
$custom: #5d2ea8;
$custom-light: #926bc3;
$custom-dark: #000000;
JSON
{
  "hex": "#5d2ea8",
  "rgb": {
    "r": 93,
    "g": 46,
    "b": 168
  },
  "hsl": {
    "h": 263.115,
    "s": 57.009,
    "l": 41.961
  },
  "oklch": {
    "l": 0.43539,
    "c": 0.1826,
    "h": 295.3
  },
  "luminance": 0.07108
}

Semantic roles & 50–950 ramp

primary
#5D2EA8
secondary
#A2C270
accent
#E048A5
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5D2EA8

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

Preview Lab → · Contrast checker → · Palette generator →

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