#5D278C#5D278C

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

Color values

HEX#5D278C
RGBrgb(93, 39, 140)
HSLhsl(272, 56%, 35%)
HSVhsv(272, 72%, 55%)
CMYKcmyk(33.6%, 72.1%, 0%, 45.1%)
CIE-LABlab(28.57, 43.72, -46.24)
CIE-LCHlch(28.57, 63.63, 313.40°)
OKLaboklab(40.36% 0.0906 -0.1314)
OKLCHoklch(40.36% 0.16 304.6)
XYZxyz(9.9723, 5.6717, 25.3752)
Luminance0.0567 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D278C #568C27
analogous
#2A278C #5D278C #8C2789
triadic
#5D278C #8C5D27 #278C5D
tetradic
#5D278C #8C2A27 #568C27 #27898C
square
#5D278C #8C2A27 #568C27 #27898C
split-complementary
#5D278C #898C27 #278C2A
monochromatic
#1D0C2C #3D1A5C #5D278C #7D34BC #9B5CD2

Accessibility & contrast

On white

9.84
#5D278C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5D278C
9.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D278C#FFFFFF#000000##FFFFFF
##5D278C1.009.842.139.84
#FFFFFF9.841.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00428F
Deuteranopia (green-blind)
#00438A
Tritanopia (blue-blind)
#543F57
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5d278c;
/* rgb */ color: rgb(93, 39, 140);
/* oklch */ color: oklch(40.4% 0.160 304.6);
Tailwind
colors: {
  custom: {
    50: '#8f66ae',
    500: '#5d278c',
    950: '#000000',
  },
}
SCSS
$custom: #5d278c;
$custom-light: #8f66ae;
$custom-dark: #000000;
JSON
{
  "hex": "#5d278c",
  "rgb": {
    "r": 93,
    "g": 39,
    "b": 140
  },
  "hsl": {
    "h": 272.079,
    "s": 56.425,
    "l": 35.098
  },
  "oklch": {
    "l": 0.40359,
    "c": 0.15964,
    "h": 304.6
  },
  "luminance": 0.05672
}

Semantic roles & 50–950 ramp

primary
#5D278C
secondary
#84B758
accent
#E0488F
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5D278C

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

Preview Lab → · Contrast checker → · Palette generator →

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