#5D2E8A#5D2E8A

#5D2E8A is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.1% C 0.148 H 304.1°. Best body text is #FFFFFF at 9.45:1 contrast (WCAG AA passes).

Color values

HEX#5D2E8A
RGBrgb(93, 46, 138)
HSLhsl(271, 50%, 36%)
HSVhsv(271, 67%, 54%)
CMYKcmyk(32.6%, 66.7%, 0%, 45.9%)
CIE-LABlab(29.70, 39.65, -43.16)
CIE-LCHlch(29.70, 58.61, 312.58°)
OKLaboklab(41.13% 0.0828 -0.1224)
OKLCHoklch(41.13% 0.148 304.1)
XYZxyz(10.0776, 6.1162, 24.6895)
Luminance0.0612 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D2E8A #5B8A2E
analogous
#2F2E8A #5D2E8A #8A2E89
triadic
#5D2E8A #8A5D2E #2E8A5D
tetradic
#5D2E8A #8A2F2E #5B8A2E #2E898A
square
#5D2E8A #8A2F2E #5B8A2E #2E898A
split-complementary
#5D2E8A #898A2E #2E8A2F
monochromatic
#1F0F2E #3E1F5C #5D2E8A #7C3DB8 #9A66CC

Accessibility & contrast

On white

9.45
#5D2E8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#5D2E8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D2E8A
9.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D2E8A#FFFFFF#000000##FFFFFF
##5D2E8A1.009.452.229.45
#FFFFFF9.451.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00458D
Deuteranopia (green-blind)
#114688
Tritanopia (blue-blind)
#554258
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5d2e8a;
/* rgb */ color: rgb(93, 46, 138);
/* oklch */ color: oklch(41.1% 0.148 304.1);
Tailwind
colors: {
  custom: {
    50: '#8f6aad',
    500: '#5d2e8a',
    950: '#000000',
  },
}
SCSS
$custom: #5d2e8a;
$custom-light: #8f6aad;
$custom-dark: #000000;
JSON
{
  "hex": "#5d2e8a",
  "rgb": {
    "r": 93,
    "g": 46,
    "b": 138
  },
  "hsl": {
    "h": 270.652,
    "s": 50,
    "l": 36.078
  },
  "oklch": {
    "l": 0.41125,
    "c": 0.14781,
    "h": 304.1
  },
  "luminance": 0.06116
}

Semantic roles & 50–950 ramp

primary
#5D2E8A
secondary
#89B361
accent
#DA4E92
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0710
muted
#7E7A7F

Preview Lab

Preview with #5D2E8A

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

Preview Lab → · Contrast checker → · Palette generator →

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