#5D277D#5D277D

#5D277D is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.2% C 0.143 H 310.3°. Best body text is #FFFFFF at 10.23:1 contrast (WCAG AA passes).

Color values

HEX#5D277D
RGBrgb(93, 39, 125)
HSLhsl(278, 52%, 32%)
HSVhsv(278, 69%, 49%)
CMYKcmyk(25.6%, 68.8%, 0%, 51%)
CIE-LABlab(27.46, 40.07, -38.65)
CIE-LCHlch(27.46, 55.67, 316.03°)
OKLaboklab(39.22% 0.0925 -0.1091)
OKLCHoklch(39.22% 0.143 310.3)
XYZxyz(8.9407, 5.2591, 19.9422)
Luminance0.0526 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D277D #477D27
analogous
#32277D #5D277D #7D2772
triadic
#5D277D #7D5D27 #277D5D
tetradic
#5D277D #7D3227 #477D27 #27727D
square
#5D277D #7D3227 #477D27 #27727D
split-complementary
#5D277D #727D27 #277D32
monochromatic
#180A20 #3A184E #5D277D #8036AC #9E55CA

Accessibility & contrast

On white

10.23
#5D277D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#5D277D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D277D
10.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D277D#FFFFFF#000000##FFFFFF
##5D277D1.0010.232.0510.23
#FFFFFF10.231.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E80
Deuteranopia (green-blind)
#1B427B
Tritanopia (blue-blind)
#59394E
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5d277d;
/* rgb */ color: rgb(93, 39, 125);
/* oklch */ color: oklch(39.2% 0.143 310.3);
Tailwind
colors: {
  custom: {
    50: '#8e65a3',
    500: '#5d277d',
    950: '#000000',
  },
}
SCSS
$custom: #5d277d;
$custom-light: #8e65a3;
$custom-dark: #000000;
JSON
{
  "hex": "#5d277d",
  "rgb": {
    "r": 93,
    "g": 39,
    "b": 125
  },
  "hsl": {
    "h": 277.674,
    "s": 52.439,
    "l": 32.157
  },
  "oklch": {
    "l": 0.39216,
    "c": 0.14305,
    "h": 310.3
  },
  "luminance": 0.05259
}

Semantic roles & 50–950 ramp

primary
#5D277D
secondary
#74AF51
accent
#DC4C81
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D060F
muted
#7E7A7F

Preview Lab

Preview with #5D277D

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

Preview Lab → · Contrast checker → · Palette generator →

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