#5D207E#5D207E

#5D207E is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.4% C 0.154 H 310.8°. Best body text is #FFFFFF at 10.64:1 contrast (WCAG AA passes).

Color values

HEX#5D207E
RGBrgb(93, 32, 126)
HSLhsl(279, 59%, 31%)
HSVhsv(279, 75%, 49%)
CMYKcmyk(26.2%, 74.6%, 0%, 50.6%)
CIE-LABlab(26.35, 43.61, -41.07)
CIE-LCHlch(26.35, 59.90, 316.72°)
OKLaboklab(38.45% 0.1004 -0.1162)
OKLCHoklch(38.45% 0.154 310.8)
XYZxyz(8.7959, 4.8667, 20.2106)
Luminance0.0487 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D207E #417E20
analogous
#2E207E #5D207E #7E2070
triadic
#5D207E #7E5D20 #207E5D
tetradic
#5D207E #7E2E20 #417E20 #20707E
square
#5D207E #7E2E20 #417E20 #20707E
split-complementary
#5D207E #707E20 #207E2E
monochromatic
#15071C #39144D #5D207E #812CAF #A148D0

Accessibility & contrast

On white

10.64
#5D207E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#5D207E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D207E
10.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D207E#FFFFFF#000000##FFFFFF
##5D207E1.0010.641.9710.64
#FFFFFF10.641.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C81
Deuteranopia (green-blind)
#103F7C
Tritanopia (blue-blind)
#59354D
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5d207e;
/* rgb */ color: rgb(93, 32, 126);
/* oklch */ color: oklch(38.4% 0.154 310.8);
Tailwind
colors: {
  custom: {
    50: '#8f62a4',
    500: '#5d207e',
    950: '#000000',
  },
}
SCSS
$custom: #5d207e;
$custom-light: #8f62a4;
$custom-dark: #000000;
JSON
{
  "hex": "#5d207e",
  "rgb": {
    "r": 93,
    "g": 32,
    "b": 126
  },
  "hsl": {
    "h": 278.936,
    "s": 59.494,
    "l": 30.98
  },
  "oklch": {
    "l": 0.38447,
    "c": 0.15355,
    "h": 310.8
  },
  "luminance": 0.04867
}

Semantic roles & 50–950 ramp

primary
#5D207E
secondary
#6DB149
accent
#E3457C
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D050F
muted
#7E7A7F

Preview Lab

Preview with #5D207E

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

Preview Lab → · Contrast checker → · Palette generator →

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