#5D279B#5D279B

#5D279B is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.6% C 0.176 H 299.8°. Best body text is #FFFFFF at 9.42:1 contrast (WCAG AA passes).

Color values

HEX#5D279B
RGBrgb(93, 39, 155)
HSLhsl(268, 60%, 38%)
HSVhsv(268, 75%, 61%)
CMYKcmyk(40%, 74.8%, 0%, 39.2%)
CIE-LABlab(29.77, 47.49, -53.50)
CIE-LCHlch(29.77, 71.54, 311.60°)
OKLaboklab(41.59% 0.0877 -0.1528)
OKLCHoklch(41.59% 0.176 299.8)
XYZxyz(11.1546, 6.1446, 31.6023)
Luminance0.0614 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D279B #659B27
analogous
#272B9B #5D279B #97279B
triadic
#5D279B #9B5D27 #279B5D
tetradic
#5D279B #9B272B #659B27 #279B97
square
#5D279B #9B272B #659B27 #279B97
split-complementary
#5D279B #9B9727 #2B9B27
monochromatic
#220E39 #401B6A #5D279B #7A33CC #9A64D8

Accessibility & contrast

On white

9.42
#5D279B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#5D279B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D279B
9.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D279B#FFFFFF#000000##FFFFFF
##5D279B1.009.422.239.42
#FFFFFF9.421.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00469E
Deuteranopia (green-blind)
#004599
Tritanopia (blue-blind)
#4F455F
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5d279b;
/* rgb */ color: rgb(93, 39, 155);
/* oklch */ color: oklch(41.6% 0.176 299.8);
Tailwind
colors: {
  custom: {
    50: '#9167b9',
    500: '#5d279b',
    950: '#000000',
  },
}
SCSS
$custom: #5d279b;
$custom-light: #9167b9;
$custom-dark: #000000;
JSON
{
  "hex": "#5d279b",
  "rgb": {
    "r": 93,
    "g": 39,
    "b": 155
  },
  "hsl": {
    "h": 267.931,
    "s": 59.794,
    "l": 38.039
  },
  "oklch": {
    "l": 0.41591,
    "c": 0.17615,
    "h": 299.8
  },
  "luminance": 0.06145
}

Semantic roles & 50–950 ramp

primary
#5D279B
secondary
#92BE60
accent
#E34599
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5D279B

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

Preview Lab → · Contrast checker → · Palette generator →

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