#5E1982#5E1982

#5E1982 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.2% C 0.166 H 310.5°. Best body text is #FFFFFF at 10.84:1 contrast (WCAG AA passes).

Color values

HEX#5E1982
RGBrgb(94, 25, 130)
HSLhsl(279, 68%, 30%)
HSVhsv(279, 81%, 51%)
CMYKcmyk(27.7%, 80.8%, 0%, 49%)
CIE-LABlab(25.82, 47.56, -44.44)
CIE-LCHlch(25.82, 65.09, 316.94°)
OKLaboklab(38.2% 0.1078 -0.126)
OKLCHoklch(38.2% 0.166 310.5)
XYZxyz(8.9922, 4.6869, 21.5457)
Luminance0.0469 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1982 #3D8219
analogous
#2A1982 #5E1982 #821971
triadic
#5E1982 #825E19 #19825E
tetradic
#5E1982 #822A19 #3D8219 #197182
square
#5E1982 #822A19 #3D8219 #197182
split-complementary
#5E1982 #718219 #19822A
monochromatic
#14051B #390F4F #5E1982 #8323B5 #A33CD9

Accessibility & contrast

On white

10.84
#5E1982 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#5E1982 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1982
10.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1982#FFFFFF#000000##FFFFFF
##5E19821.0010.841.9410.84
#FFFFFF10.841.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A85
Deuteranopia (green-blind)
#003E80
Tritanopia (blue-blind)
#59334D
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5e1982;
/* rgb */ color: rgb(94, 25, 130);
/* oklch */ color: oklch(38.2% 0.166 310.5);
Tailwind
colors: {
  custom: {
    50: '#905fa7',
    500: '#5e1982',
    950: '#000000',
  },
}
SCSS
$custom: #5e1982;
$custom-light: #905fa7;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1982",
  "rgb": {
    "r": 94,
    "g": 25,
    "b": 130
  },
  "hsl": {
    "h": 279.429,
    "s": 67.742,
    "l": 30.392
  },
  "oklch": {
    "l": 0.38203,
    "c": 0.16584,
    "h": 310.5
  },
  "luminance": 0.04687
}

Semantic roles & 50–950 ramp

primary
#5E1982
secondary
#69B641
accent
#EB3D79
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5E1982

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

Preview Lab → · Contrast checker → · Palette generator →

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