#5D278E#5D278E

#5D278E is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.5% C 0.162 H 303.9°. Best body text is #FFFFFF at 9.78:1 contrast (WCAG AA passes).

Color values

HEX#5D278E
RGBrgb(93, 39, 142)
HSLhsl(271, 57%, 35%)
HSVhsv(271, 73%, 56%)
CMYKcmyk(34.5%, 72.5%, 0%, 44.3%)
CIE-LABlab(28.72, 44.22, -47.22)
CIE-LCHlch(28.72, 64.69, 313.12°)
OKLaboklab(40.52% 0.0903 -0.1343)
OKLCHoklch(40.52% 0.162 303.9)
XYZxyz(10.1211, 5.7312, 26.1590)
Luminance0.0573 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D278E #588E27
analogous
#29278E #5D278E #8E278B
triadic
#5D278E #8E5D27 #278E5D
tetradic
#5D278E #8E2927 #588E27 #278B8E
square
#5D278E #8E2927 #588E27 #278B8E
split-complementary
#5D278E #8B8E27 #278E29
monochromatic
#1E0D2E #3E1A5E #5D278E #7C34BE #9B5DD2

Accessibility & contrast

On white

9.78
#5D278E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5D278E
9.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D278E#FFFFFF#000000##FFFFFF
##5D278E1.009.782.159.78
#FFFFFF9.781.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004391
Deuteranopia (green-blind)
#00448C
Tritanopia (blue-blind)
#533F58
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5d278e;
/* rgb */ color: rgb(93, 39, 142);
/* oklch */ color: oklch(40.5% 0.162 303.9);
Tailwind
colors: {
  custom: {
    50: '#8f66b0',
    500: '#5d278e',
    950: '#000000',
  },
}
SCSS
$custom: #5d278e;
$custom-light: #8f66b0;
$custom-dark: #000000;
JSON
{
  "hex": "#5d278e",
  "rgb": {
    "r": 93,
    "g": 39,
    "b": 142
  },
  "hsl": {
    "h": 271.456,
    "s": 56.906,
    "l": 35.49
  },
  "oklch": {
    "l": 0.40519,
    "c": 0.16185,
    "h": 303.9
  },
  "luminance": 0.05731
}

Semantic roles & 50–950 ramp

primary
#5D278E
secondary
#86B859
accent
#E04890
background
#F9F6FA
surface
#F1EBF5
border
#CBC6CF
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5D278E

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

Preview Lab → · Contrast checker → · Palette generator →

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