#5D1882#5D1882

#5D1882 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 38.0% C 0.167 H 310.1°. Best body text is #FFFFFF at 10.95:1 contrast (WCAG AA passes).

Color values

HEX#5D1882
RGBrgb(93, 24, 130)
HSLhsl(279, 69%, 30%)
HSVhsv(279, 82%, 51%)
CMYKcmyk(28.5%, 81.5%, 0%, 49%)
CIE-LABlab(25.54, 47.74, -44.90)
CIE-LCHlch(25.54, 65.54, 316.75°)
OKLaboklab(37.97% 0.1073 -0.1274)
OKLCHoklch(37.97% 0.167 310.1)
XYZxyz(8.8693, 4.5923, 21.5339)
Luminance0.0459 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1882 #3D8218
analogous
#281882 #5D1882 #821872
triadic
#5D1882 #825D18 #18825D
tetradic
#5D1882 #822818 #3D8218 #187282
square
#5D1882 #822818 #3D8218 #187282
split-complementary
#5D1882 #728218 #188228
monochromatic
#13051B #380E4E #5D1882 #8222B6 #A23ADB

Accessibility & contrast

On white

10.95
#5D1882 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#5D1882 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D1882
10.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1882#FFFFFF#000000##FFFFFF
##5D18821.0010.951.9210.95
#FFFFFF10.951.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A85
Deuteranopia (green-blind)
#003D80
Tritanopia (blue-blind)
#58334D
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #5d1882;
/* rgb */ color: rgb(93, 24, 130);
/* oklch */ color: oklch(38.0% 0.167 310.1);
Tailwind
colors: {
  custom: {
    50: '#8f5ea7',
    500: '#5d1882',
    950: '#000000',
  },
}
SCSS
$custom: #5d1882;
$custom-light: #8f5ea7;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1882",
  "rgb": {
    "r": 93,
    "g": 24,
    "b": 130
  },
  "hsl": {
    "h": 279.057,
    "s": 68.831,
    "l": 30.196
  },
  "oklch": {
    "l": 0.37973,
    "c": 0.16655,
    "h": 310.1
  },
  "luminance": 0.04592
}

Semantic roles & 50–950 ramp

primary
#5D1882
secondary
#69B640
accent
#EC3C79
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5D1882

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

Preview Lab → · Contrast checker → · Palette generator →

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