#5D279A#5D279A

#5D279A is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.5% C 0.175 H 300.1°. Best body text is #FFFFFF at 9.45:1 contrast (WCAG AA passes).

Color values

HEX#5D279A
RGBrgb(93, 39, 154)
HSLhsl(268, 60%, 38%)
HSVhsv(268, 75%, 60%)
CMYKcmyk(39.6%, 74.7%, 0%, 39.6%)
CIE-LABlab(29.69, 47.24, -53.02)
CIE-LCHlch(29.69, 71.01, 311.70°)
OKLaboklab(41.51% 0.0879 -0.1514)
OKLCHoklch(41.51% 0.175 300.1)
XYZxyz(11.0710, 6.1112, 31.1619)
Luminance0.0611 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D279A #649A27
analogous
#272B9A #5D279A #96279A
triadic
#5D279A #9A5D27 #279A5D
tetradic
#5D279A #9A272B #649A27 #279A96
square
#5D279A #9A272B #649A27 #279A96
split-complementary
#5D279A #9A9627 #2B9A27
monochromatic
#220E38 #401B69 #5D279A #7A33CB #9A64D8

Accessibility & contrast

On white

9.45
#5D279A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#5D279A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D279A
9.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D279A#FFFFFF#000000##FFFFFF
##5D279A1.009.452.229.45
#FFFFFF9.451.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00469D
Deuteranopia (green-blind)
#004598
Tritanopia (blue-blind)
#4F445E
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5d279a;
/* rgb */ color: rgb(93, 39, 154);
/* oklch */ color: oklch(41.5% 0.175 300.1);
Tailwind
colors: {
  custom: {
    50: '#9167b9',
    500: '#5d279a',
    950: '#000000',
  },
}
SCSS
$custom: #5d279a;
$custom-light: #9167b9;
$custom-dark: #000000;
JSON
{
  "hex": "#5d279a",
  "rgb": {
    "r": 93,
    "g": 39,
    "b": 154
  },
  "hsl": {
    "h": 268.174,
    "s": 59.585,
    "l": 37.843
  },
  "oklch": {
    "l": 0.41507,
    "c": 0.17504,
    "h": 300.1
  },
  "luminance": 0.06111
}

Semantic roles & 50–950 ramp

primary
#5D279A
secondary
#91BD5F
accent
#E34599
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5D279A

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

Preview Lab → · Contrast checker → · Palette generator →

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