#5D2E8E#5D2E8E

#5D2E8E is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.4% C 0.152 H 302.7°. Best body text is #FFFFFF at 9.35:1 contrast (WCAG AA passes).

Color values

HEX#5D2E8E
RGBrgb(93, 46, 142)
HSLhsl(269, 51%, 37%)
HSVhsv(269, 68%, 56%)
CMYKcmyk(34.5%, 67.6%, 0%, 44.3%)
CIE-LABlab(30.00, 40.68, -45.16)
CIE-LCHlch(30.00, 60.78, 312.01°)
OKLaboklab(41.43% 0.0824 -0.1283)
OKLCHoklch(41.43% 0.153 302.7)
XYZxyz(10.3725, 6.2341, 26.2428)
Luminance0.0623 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D2E8E #5F8E2E
analogous
#2E2F8E #5D2E8E #8D2E8E
triadic
#5D2E8E #8E5D2E #2E8E5D
tetradic
#5D2E8E #8E2E2F #5F8E2E #2E8E8D
square
#5D2E8E #8E2E2F #5F8E2E #2E8E8D
split-complementary
#5D2E8E #8E8D2E #2F8E2E
monochromatic
#201032 #3F1F60 #5D2E8E #7B3DBC #9A68CE

Accessibility & contrast

On white

9.35
#5D2E8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#5D2E8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D2E8E
9.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D2E8E#FFFFFF#000000##FFFFFF
##5D2E8E1.009.352.259.35
#FFFFFF9.351.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004691
Deuteranopia (green-blind)
#07468C
Tritanopia (blue-blind)
#53435A
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5d2e8e;
/* rgb */ color: rgb(93, 46, 142);
/* oklch */ color: oklch(41.4% 0.152 302.7);
Tailwind
colors: {
  custom: {
    50: '#8f6ab0',
    500: '#5d2e8e',
    950: '#000000',
  },
}
SCSS
$custom: #5d2e8e;
$custom-light: #8f6ab0;
$custom-dark: #000000;
JSON
{
  "hex": "#5d2e8e",
  "rgb": {
    "r": 93,
    "g": 46,
    "b": 142
  },
  "hsl": {
    "h": 269.375,
    "s": 51.064,
    "l": 36.863
  },
  "oklch": {
    "l": 0.41428,
    "c": 0.1525,
    "h": 302.7
  },
  "luminance": 0.06234
}

Semantic roles & 50–950 ramp

primary
#5D2E8E
secondary
#8DB563
accent
#DB4D95
background
#F9F6FA
surface
#F1EBF5
border
#CBC6CF
text
#0D0710
muted
#7E7A7F

Preview Lab

Preview with #5D2E8E

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

Preview Lab → · Contrast checker → · Palette generator →

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