#5D278B#5D278B

#5D278B is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.3% C 0.159 H 304.9°. Best body text is #FFFFFF at 9.87:1 contrast (WCAG AA passes).

Color values

HEX#5D278B
RGBrgb(93, 39, 139)
HSLhsl(272, 56%, 35%)
HSVhsv(272, 72%, 55%)
CMYKcmyk(33.1%, 71.9%, 0%, 45.5%)
CIE-LABlab(28.49, 43.47, -45.74)
CIE-LCHlch(28.49, 63.10, 313.54°)
OKLaboklab(40.28% 0.0908 -0.13)
OKLCHoklch(40.28% 0.159 304.9)
XYZxyz(9.8989, 5.6423, 24.9887)
Luminance0.0564 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D278B #558B27
analogous
#2B278B #5D278B #8B2787
triadic
#5D278B #8B5D27 #278B5D
tetradic
#5D278B #8B2B27 #558B27 #27878B
square
#5D278B #8B2B27 #558B27 #27878B
split-complementary
#5D278B #878B27 #278B2B
monochromatic
#1D0C2B #3D1A5B #5D278B #7D34BB #9B5BD1

Accessibility & contrast

On white

9.87
#5D278B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#5D278B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D278B
9.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D278B#FFFFFF#000000##FFFFFF
##5D278B1.009.872.139.87
#FFFFFF9.871.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00428E
Deuteranopia (green-blind)
#004389
Tritanopia (blue-blind)
#543E56
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5d278b;
/* rgb */ color: rgb(93, 39, 139);
/* oklch */ color: oklch(40.3% 0.159 304.9);
Tailwind
colors: {
  custom: {
    50: '#8f66ae',
    500: '#5d278b',
    950: '#000000',
  },
}
SCSS
$custom: #5d278b;
$custom-light: #8f66ae;
$custom-dark: #000000;
JSON
{
  "hex": "#5d278b",
  "rgb": {
    "r": 93,
    "g": 39,
    "b": 139
  },
  "hsl": {
    "h": 272.4,
    "s": 56.18,
    "l": 34.902
  },
  "oklch": {
    "l": 0.4028,
    "c": 0.15853,
    "h": 304.9
  },
  "luminance": 0.05642
}

Semantic roles & 50–950 ramp

primary
#5D278B
secondary
#83B658
accent
#DF488E
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5D278B

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

Preview Lab → · Contrast checker → · Palette generator →

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