#5D278D#5D278D

#5D278D is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.4% C 0.161 H 304.2°. Best body text is #FFFFFF at 9.81:1 contrast (WCAG AA passes).

Color values

HEX#5D278D
RGBrgb(93, 39, 141)
HSLhsl(272, 57%, 35%)
HSVhsv(272, 72%, 55%)
CMYKcmyk(34%, 72.3%, 0%, 44.7%)
CIE-LABlab(28.65, 43.97, -46.73)
CIE-LCHlch(28.65, 64.16, 313.26°)
OKLaboklab(40.44% 0.0904 -0.1329)
OKLCHoklch(40.44% 0.161 304.2)
XYZxyz(10.0463, 5.7013, 25.7653)
Luminance0.0570 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D278D #578D27
analogous
#2A278D #5D278D #8D278A
triadic
#5D278D #8D5D27 #278D5D
tetradic
#5D278D #8D2A27 #578D27 #278A8D
square
#5D278D #8D2A27 #578D27 #278A8D
split-complementary
#5D278D #8A8D27 #278D2A
monochromatic
#1E0C2D #3D1A5D #5D278D #7D34BD #9B5CD2

Accessibility & contrast

On white

9.81
#5D278D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#5D278D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D278D
9.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D278D#FFFFFF#000000##FFFFFF
##5D278D1.009.812.149.81
#FFFFFF9.811.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004290
Deuteranopia (green-blind)
#00438B
Tritanopia (blue-blind)
#543F57
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5d278d;
/* rgb */ color: rgb(93, 39, 141);
/* oklch */ color: oklch(40.4% 0.161 304.2);
Tailwind
colors: {
  custom: {
    50: '#8f66af',
    500: '#5d278d',
    950: '#000000',
  },
}
SCSS
$custom: #5d278d;
$custom-light: #8f66af;
$custom-dark: #000000;
JSON
{
  "hex": "#5d278d",
  "rgb": {
    "r": 93,
    "g": 39,
    "b": 141
  },
  "hsl": {
    "h": 271.765,
    "s": 56.667,
    "l": 35.294
  },
  "oklch": {
    "l": 0.40439,
    "c": 0.16074,
    "h": 304.2
  },
  "luminance": 0.05701
}

Semantic roles & 50–950 ramp

primary
#5D278D
secondary
#85B759
accent
#E0488F
background
#F9F6FA
surface
#F1EBF5
border
#CBC6CF
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5D278D

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

Preview Lab → · Contrast checker → · Palette generator →

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