#5D2B8E#5D2B8E

#5D2B8E is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.0% C 0.157 H 303.2°. Best body text is #FFFFFF at 9.54:1 contrast (WCAG AA passes).

Color values

HEX#5D2B8E
RGBrgb(93, 43, 142)
HSLhsl(270, 54%, 36%)
HSVhsv(270, 70%, 56%)
CMYKcmyk(34.5%, 69.7%, 0%, 44.3%)
CIE-LABlab(29.43, 42.24, -46.07)
CIE-LCHlch(29.43, 62.50, 312.51°)
OKLaboklab(41.02% 0.0859 -0.131)
OKLCHoklch(41.02% 0.157 303.2)
XYZxyz(10.2594, 6.0079, 26.2051)
Luminance0.0601 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D2B8E #5C8E2B
analogous
#2C2B8E #5D2B8E #8E2B8E
triadic
#5D2B8E #8E5D2B #2B8E5D
tetradic
#5D2B8E #8E2C2B #5C8E2B #2B8E8E
square
#5D2B8E #8E2C2B #5C8E2B #2B8E8E
split-complementary
#5D2B8E #8E8E2B #2B8E2C
monochromatic
#1F0F30 #3E1D5F #5D2B8E #7C39BD #9A63D0

Accessibility & contrast

On white

9.54
#5D2B8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#5D2B8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D2B8E
9.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D2B8E#FFFFFF#000000##FFFFFF
##5D2B8E1.009.542.209.54
#FFFFFF9.541.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004491
Deuteranopia (green-blind)
#00458C
Tritanopia (blue-blind)
#534259
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5d2b8e;
/* rgb */ color: rgb(93, 43, 142);
/* oklch */ color: oklch(41.0% 0.157 303.2);
Tailwind
colors: {
  custom: {
    50: '#8f68b0',
    500: '#5d2b8e',
    950: '#000000',
  },
}
SCSS
$custom: #5d2b8e;
$custom-light: #8f68b0;
$custom-dark: #000000;
JSON
{
  "hex": "#5d2b8e",
  "rgb": {
    "r": 93,
    "g": 43,
    "b": 142
  },
  "hsl": {
    "h": 270.303,
    "s": 53.514,
    "l": 36.275
  },
  "oklch": {
    "l": 0.41024,
    "c": 0.15663,
    "h": 303.2
  },
  "luminance": 0.06008
}

Semantic roles & 50–950 ramp

primary
#5D2B8E
secondary
#8AB65F
accent
#DD4B93
background
#F9F6FA
surface
#F1EBF5
border
#CBC6CF
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5D2B8E

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

Preview Lab → · Contrast checker → · Palette generator →

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