#5D287E#5D287E

#5D287E is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.4% C 0.143 H 309.7°. Best body text is #FFFFFF at 10.14:1 contrast (WCAG AA passes).

Color values

HEX#5D287E
RGBrgb(93, 40, 126)
HSLhsl(277, 52%, 33%)
HSVhsv(277, 68%, 49%)
CMYKcmyk(26.2%, 68.3%, 0%, 50.6%)
CIE-LABlab(27.71, 39.80, -38.87)
CIE-LCHlch(27.71, 55.63, 315.68°)
OKLaboklab(39.42% 0.0912 -0.1098)
OKLCHoklch(39.42% 0.143 309.7)
XYZxyz(9.0382, 5.3513, 20.2914)
Luminance0.0535 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D287E #497E28
analogous
#32287E #5D287E #7E2874
triadic
#5D287E #7E5D28 #287E5D
tetradic
#5D287E #7E3228 #497E28 #28747E
square
#5D287E #7E3228 #497E28 #28747E
split-complementary
#5D287E #747E28 #287E32
monochromatic
#180B21 #3B1950 #5D287E #7F37AC #9E57CA

Accessibility & contrast

On white

10.14
#5D287E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#5D287E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D287E
10.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D287E#FFFFFF#000000##FFFFFF
##5D287E1.0010.142.0710.14
#FFFFFF10.141.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F81
Deuteranopia (green-blind)
#1B427C
Tritanopia (blue-blind)
#583A4F
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5d287e;
/* rgb */ color: rgb(93, 40, 126);
/* oklch */ color: oklch(39.4% 0.143 309.7);
Tailwind
colors: {
  custom: {
    50: '#8e66a4',
    500: '#5d287e',
    950: '#000000',
  },
}
SCSS
$custom: #5d287e;
$custom-light: #8e66a4;
$custom-dark: #000000;
JSON
{
  "hex": "#5d287e",
  "rgb": {
    "r": 93,
    "g": 40,
    "b": 126
  },
  "hsl": {
    "h": 276.977,
    "s": 51.807,
    "l": 32.549
  },
  "oklch": {
    "l": 0.3942,
    "c": 0.14272,
    "h": 309.7
  },
  "luminance": 0.05351
}

Semantic roles & 50–950 ramp

primary
#5D287E
secondary
#76AF53
accent
#DB4D83
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D060F
muted
#7E7A7F

Preview Lab

Preview with #5D287E

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

Preview Lab → · Contrast checker → · Palette generator →

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