#5D279E#5D279E

#5D279E is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.8% C 0.179 H 299.0°. Best body text is #FFFFFF at 9.34:1 contrast (WCAG AA passes).

Color values

HEX#5D279E
RGBrgb(93, 39, 158)
HSLhsl(267, 60%, 39%)
HSVhsv(267, 75%, 62%)
CMYKcmyk(41.1%, 75.3%, 0%, 38%)
CIE-LABlab(30.03, 48.26, -54.91)
CIE-LCHlch(30.03, 73.11, 311.31°)
OKLaboklab(41.85% 0.087 -0.1569)
OKLCHoklch(41.85% 0.179 299)
XYZxyz(11.4097, 6.2467, 32.9457)
Luminance0.0625 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D279E #689E27
analogous
#272C9E #5D279E #98279E
triadic
#5D279E #9E5D27 #279E5D
tetradic
#5D279E #9E272C #689E27 #279E98
square
#5D279E #9E272C #689E27 #279E98
split-complementary
#5D279E #9E9827 #2C9E27
monochromatic
#230F3C #401B6D #5D279E #7A35CD #9A66D9

Accessibility & contrast

On white

9.34
#5D279E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#5D279E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D279E
9.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D279E#FFFFFF#000000##FFFFFF
##5D279E1.009.342.259.34
#FFFFFF9.341.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A1
Deuteranopia (green-blind)
#00469C
Tritanopia (blue-blind)
#4D4661
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5d279e;
/* rgb */ color: rgb(93, 39, 158);
/* oklch */ color: oklch(41.8% 0.179 299.0);
Tailwind
colors: {
  custom: {
    50: '#9167bc',
    500: '#5d279e',
    950: '#000000',
  },
}
SCSS
$custom: #5d279e;
$custom-light: #9167bc;
$custom-dark: #000000;
JSON
{
  "hex": "#5d279e",
  "rgb": {
    "r": 93,
    "g": 39,
    "b": 158
  },
  "hsl": {
    "h": 267.227,
    "s": 60.406,
    "l": 38.627
  },
  "oklch": {
    "l": 0.41847,
    "c": 0.17943,
    "h": 299
  },
  "luminance": 0.06247
}

Semantic roles & 50–950 ramp

primary
#5D279E
secondary
#95BF62
accent
#E4449B
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5D279E

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

Preview Lab → · Contrast checker → · Palette generator →

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