#5D279F#5D279F

#5D279F is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.9% C 0.181 H 298.7°. Best body text is #FFFFFF at 9.31:1 contrast (WCAG AA passes).

Color values

HEX#5D279F
RGBrgb(93, 39, 159)
HSLhsl(267, 61%, 39%)
HSVhsv(267, 75%, 62%)
CMYKcmyk(41.5%, 75.5%, 0%, 37.6%)
CIE-LABlab(30.11, 48.52, -55.38)
CIE-LCHlch(30.11, 73.63, 311.22°)
OKLaboklab(41.93% 0.0867 -0.1583)
OKLCHoklch(41.93% 0.181 298.7)
XYZxyz(11.4961, 6.2812, 33.4009)
Luminance0.0628 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D279F #699F27
analogous
#272D9F #5D279F #99279F
triadic
#5D279F #9F5D27 #279F5D
tetradic
#5D279F #9F272D #699F27 #279F99
square
#5D279F #9F272D #699F27 #279F99
split-complementary
#5D279F #9F9927 #2D9F27
monochromatic
#240F3D #401B6E #5D279F #7A36CE #9A67DA

Accessibility & contrast

On white

9.31
#5D279F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#5D279F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D279F
9.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D279F#FFFFFF#000000##FFFFFF
##5D279F1.009.312.269.31
#FFFFFF9.311.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.311.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5d279f;
/* rgb */ color: rgb(93, 39, 159);
/* oklch */ color: oklch(41.9% 0.181 298.7);
Tailwind
colors: {
  custom: {
    50: '#9167bc',
    500: '#5d279f',
    950: '#000000',
  },
}
SCSS
$custom: #5d279f;
$custom-light: #9167bc;
$custom-dark: #000000;
JSON
{
  "hex": "#5d279f",
  "rgb": {
    "r": 93,
    "g": 39,
    "b": 159
  },
  "hsl": {
    "h": 267,
    "s": 60.606,
    "l": 38.824
  },
  "oklch": {
    "l": 0.41933,
    "c": 0.18051,
    "h": 298.7
  },
  "luminance": 0.06281
}

Semantic roles & 50–950 ramp

primary
#5D279F
secondary
#96C062
accent
#E4449C
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5D279F

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

Preview Lab → · Contrast checker → · Palette generator →

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