#5D2E7F#5D2E7F

#5D2E7F is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.3% C 0.135 H 308.2°. Best body text is #FFFFFF at 9.71:1 contrast (WCAG AA passes).

Color values

HEX#5D2E7F
RGBrgb(93, 46, 127)
HSLhsl(275, 47%, 34%)
HSVhsv(275, 64%, 50%)
CMYKcmyk(26.8%, 63.8%, 0%, 50.2%)
CIE-LABlab(28.94, 36.88, -37.53)
CIE-LCHlch(28.94, 52.62, 314.50°)
OKLaboklab(40.33% 0.0835 -0.1059)
OKLCHoklch(40.33% 0.135 308.2)
XYZxyz(9.3212, 5.8136, 20.7057)
Luminance0.0581 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D2E7F #507F2E
analogous
#352E7F #5D2E7F #7F2E79
triadic
#5D2E7F #7F5D2E #2E7F5D
tetradic
#5D2E7F #7F352E #507F2E #2E797F
square
#5D2E7F #7F352E #507F2E #2E797F
split-complementary
#5D2E7F #797F2E #2E7F35
monochromatic
#1B0D25 #3C1E52 #5D2E7F #7E3EAC #9C61C6

Accessibility & contrast

On white

9.71
#5D2E7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#5D2E7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D2E7F
9.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D2E7F#FFFFFF#000000##FFFFFF
##5D2E7F1.009.712.169.71
#FFFFFF9.711.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#064282
Deuteranopia (green-blind)
#21457D
Tritanopia (blue-blind)
#583E52
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5d2e7f;
/* rgb */ color: rgb(93, 46, 127);
/* oklch */ color: oklch(40.3% 0.135 308.2);
Tailwind
colors: {
  custom: {
    50: '#8e6aa5',
    500: '#5d2e7f',
    950: '#000000',
  },
}
SCSS
$custom: #5d2e7f;
$custom-light: #8e6aa5;
$custom-dark: #000000;
JSON
{
  "hex": "#5d2e7f",
  "rgb": {
    "r": 93,
    "g": 46,
    "b": 127
  },
  "hsl": {
    "h": 274.815,
    "s": 46.821,
    "l": 33.922
  },
  "oklch": {
    "l": 0.40326,
    "c": 0.13484,
    "h": 308.2
  },
  "luminance": 0.05813
}

Semantic roles & 50–950 ramp

primary
#5D2E7F
secondary
#7EAD5C
accent
#D65189
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0D060F
muted
#7D7A7F

Preview Lab

Preview with #5D2E7F

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

Preview Lab → · Contrast checker → · Palette generator →

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