#5D279D#5D279D

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

Color values

HEX#5D279D
RGBrgb(93, 39, 157)
HSLhsl(267, 60%, 38%)
HSVhsv(267, 75%, 62%)
CMYKcmyk(40.8%, 75.2%, 0%, 38.4%)
CIE-LABlab(29.94, 48.00, -54.44)
CIE-LCHlch(29.94, 72.58, 311.40°)
OKLaboklab(41.76% 0.0872 -0.1556)
OKLCHoklch(41.76% 0.178 299.3)
XYZxyz(11.3240, 6.2124, 32.4943)
Luminance0.0621 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D279D #679D27
analogous
#272C9D #5D279D #98279D
triadic
#5D279D #9D5D27 #279D5D
tetradic
#5D279D #9D272C #679D27 #279D98
square
#5D279D #9D272C #679D27 #279D98
split-complementary
#5D279D #9D9827 #2C9D27
monochromatic
#230F3B #401B6C #5D279D #7A35CD #9A66D9

Accessibility & contrast

On white

9.36
#5D279D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#5D279D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D279D
9.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D279D#FFFFFF#000000##FFFFFF
##5D279D1.009.362.249.36
#FFFFFF9.361.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A0
Deuteranopia (green-blind)
#00459B
Tritanopia (blue-blind)
#4E4560
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5d279d;
/* rgb */ color: rgb(93, 39, 157);
/* oklch */ color: oklch(41.8% 0.178 299.3);
Tailwind
colors: {
  custom: {
    50: '#9167bb',
    500: '#5d279d',
    950: '#000000',
  },
}
SCSS
$custom: #5d279d;
$custom-light: #9167bb;
$custom-dark: #000000;
JSON
{
  "hex": "#5d279d",
  "rgb": {
    "r": 93,
    "g": 39,
    "b": 157
  },
  "hsl": {
    "h": 267.458,
    "s": 60.204,
    "l": 38.431
  },
  "oklch": {
    "l": 0.41762,
    "c": 0.17833,
    "h": 299.3
  },
  "luminance": 0.06213
}

Semantic roles & 50–950 ramp

primary
#5D279D
secondary
#94BF61
accent
#E3449B
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5D279D

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

Preview Lab → · Contrast checker → · Palette generator →

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