#5D2E8B#5D2E8B

#5D2E8B is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.2% C 0.149 H 303.7°. Best body text is #FFFFFF at 9.42:1 contrast (WCAG AA passes).

Color values

HEX#5D2E8B
RGBrgb(93, 46, 139)
HSLhsl(270, 50%, 36%)
HSVhsv(270, 67%, 55%)
CMYKcmyk(33.1%, 66.9%, 0%, 45.5%)
CIE-LABlab(29.78, 39.91, -43.66)
CIE-LCHlch(29.78, 59.15, 312.43°)
OKLaboklab(41.2% 0.0827 -0.1239)
OKLCHoklch(41.2% 0.149 303.7)
XYZxyz(10.1503, 6.1452, 25.0725)
Luminance0.0614 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D2E8B #5C8B2E
analogous
#2F2E8B #5D2E8B #8B2E8B
triadic
#5D2E8B #8B5D2E #2E8B5D
tetradic
#5D2E8B #8B2F2E #5C8B2E #2E8B8B
square
#5D2E8B #8B2F2E #5C8B2E #2E8B8B
split-complementary
#5D2E8B #8B8B2E #2E8B2F
monochromatic
#1F102F #3E1F5D #5D2E8B #7C3DB9 #9A67CD

Accessibility & contrast

On white

9.42
#5D2E8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#5D2E8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D2E8B
9.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D2E8B#FFFFFF#000000##FFFFFF
##5D2E8B1.009.422.239.42
#FFFFFF9.421.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00458E
Deuteranopia (green-blind)
#0F4689
Tritanopia (blue-blind)
#544258
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5d2e8b;
/* rgb */ color: rgb(93, 46, 139);
/* oklch */ color: oklch(41.2% 0.149 303.7);
Tailwind
colors: {
  custom: {
    50: '#8f6aad',
    500: '#5d2e8b',
    950: '#000000',
  },
}
SCSS
$custom: #5d2e8b;
$custom-light: #8f6aad;
$custom-dark: #000000;
JSON
{
  "hex": "#5d2e8b",
  "rgb": {
    "r": 93,
    "g": 46,
    "b": 139
  },
  "hsl": {
    "h": 270.323,
    "s": 50.27,
    "l": 36.275
  },
  "oklch": {
    "l": 0.412,
    "c": 0.14898,
    "h": 303.7
  },
  "luminance": 0.06145
}

Semantic roles & 50–950 ramp

primary
#5D2E8B
secondary
#8AB361
accent
#DA4E93
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0710
muted
#7E7A7F

Preview Lab

Preview with #5D2E8B

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

Preview Lab → · Contrast checker → · Palette generator →

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