#5D2F7A#5D2F7A

#5D2F7A is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.1% C 0.127 H 310.2°. Best body text is #FFFFFF at 9.75:1 contrast (WCAG AA passes).

Color values

HEX#5D2F7A
RGBrgb(93, 47, 122)
HSLhsl(277, 44%, 33%)
HSVhsv(277, 61%, 48%)
CMYKcmyk(23.8%, 61.5%, 0%, 52.2%)
CIE-LABlab(28.81, 35.10, -34.59)
CIE-LCHlch(28.81, 49.28, 315.42°)
OKLaboklab(40.13% 0.0822 -0.0973)
OKLCHoklch(40.13% 0.127 310.2)
XYZxyz(9.0429, 5.7655, 19.0451)
Luminance0.0576 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D2F7A #4C7A2F
analogous
#372F7A #5D2F7A #7A2F71
triadic
#5D2F7A #7A5D2F #2F7A5D
tetradic
#5D2F7A #7A372F #4C7A2F #2F717A
square
#5D2F7A #7A372F #4C7A2F #2F717A
split-complementary
#5D2F7A #717A2F #2F7A37
monochromatic
#1A0D22 #3B1E4E #5D2F7A #7F40A6 #9D61C2

Accessibility & contrast

On white

9.75
#5D2F7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#5D2F7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D2F7A
9.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D2F7A#FFFFFF#000000##FFFFFF
##5D2F7A1.009.752.159.75
#FFFFFF9.751.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#13427C
Deuteranopia (green-blind)
#274578
Tritanopia (blue-blind)
#593D50
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5d2f7a;
/* rgb */ color: rgb(93, 47, 122);
/* oklch */ color: oklch(40.1% 0.127 310.2);
Tailwind
colors: {
  custom: {
    50: '#8d6aa1',
    500: '#5d2f7a',
    950: '#000000',
  },
}
SCSS
$custom: #5d2f7a;
$custom-light: #8d6aa1;
$custom-dark: #000000;
JSON
{
  "hex": "#5d2f7a",
  "rgb": {
    "r": 93,
    "g": 47,
    "b": 122
  },
  "hsl": {
    "h": 276.8,
    "s": 44.379,
    "l": 33.137
  },
  "oklch": {
    "l": 0.4013,
    "c": 0.12733,
    "h": 310.2
  },
  "luminance": 0.05765
}

Semantic roles & 50–950 ramp

primary
#5D2F7A
secondary
#7AA95C
accent
#D45485
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0C060F
muted
#7D7A7E

Preview Lab

Preview with #5D2F7A

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

Preview Lab → · Contrast checker → · Palette generator →

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