#5D2EB7#5D2EB7

#5D2EB7 is a dark, vivid violet. Relative luminance 0.077; OKLCH L 44.9% C 0.200 H 292.0°. Best body text is #FFFFFF at 8.27:1 contrast (WCAG AA passes).

Color values

HEX#5D2EB7
RGBrgb(93, 46, 183)
HSLhsl(261, 60%, 45%)
HSVhsv(261, 75%, 72%)
CMYKcmyk(49.2%, 74.9%, 0%, 28.2%)
CIE-LABlab(33.35, 51.57, -64.48)
CIE-LCHlch(33.35, 82.57, 308.65°)
OKLaboklab(44.86% 0.0746 -0.1851)
OKLCHoklch(44.86% 0.2 292)
XYZxyz(14.0360, 7.6995, 45.5372)
Luminance0.0770 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D2EB7 #88B72E
analogous
#2E44B7 #5D2EB7 #A22EB7
triadic
#5D2EB7 #B75D2E #2EB75D
tetradic
#5D2EB7 #B72E44 #88B72E #2EB7A2
square
#5D2EB7 #B72E44 #88B72E #2EB7A2
split-complementary
#5D2EB7 #B7A22E #44B72E
monochromatic
#2B1555 #442286 #5D2EB7 #7C4FD3 #A180DF

Accessibility & contrast

On white

8.27
#5D2EB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#5D2EB7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D2EB7
8.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D2EB7#FFFFFF#000000##FFFFFF
##5D2EB71.008.272.548.27
#FFFFFF8.271.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050BB
Deuteranopia (green-blind)
#004CB4
Tritanopia (blue-blind)
#405370
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #5d2eb7;
/* rgb */ color: rgb(93, 46, 183);
/* oklch */ color: oklch(44.9% 0.200 292.0);
Tailwind
colors: {
  custom: {
    50: '#946cce',
    500: '#5d2eb7',
    950: '#000000',
  },
}
SCSS
$custom: #5d2eb7;
$custom-light: #946cce;
$custom-dark: #000000;
JSON
{
  "hex": "#5d2eb7",
  "rgb": {
    "r": 93,
    "g": 46,
    "b": 183
  },
  "hsl": {
    "h": 260.584,
    "s": 59.825,
    "l": 44.902
  },
  "oklch": {
    "l": 0.44855,
    "c": 0.19955,
    "h": 292
  },
  "luminance": 0.077
}

Semantic roles & 50–950 ramp

primary
#5D2EB7
secondary
#ADC879
accent
#E345AD
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0714
muted
#7E7A82

Preview Lab

Preview with #5D2EB7

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

Preview Lab → · Contrast checker → · Palette generator →

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