#5E1985#5E1985

#5E1985 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.4% C 0.169 H 309.4°. Best body text is #FFFFFF at 10.75:1 contrast (WCAG AA passes).

Color values

HEX#5E1985
RGBrgb(94, 25, 133)
HSLhsl(278, 68%, 31%)
HSVhsv(278, 81%, 52%)
CMYKcmyk(29.3%, 81.2%, 0%, 47.8%)
CIE-LABlab(26.07, 48.23, -45.93)
CIE-LCHlch(26.07, 66.60, 316.40°)
OKLaboklab(38.45% 0.1071 -0.1304)
OKLCHoklch(38.45% 0.169 309.4)
XYZxyz(9.1965, 4.7686, 22.6217)
Luminance0.0477 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1985 #408519
analogous
#281985 #5E1985 #851976
triadic
#5E1985 #855E19 #19855E
tetradic
#5E1985 #852819 #408519 #197685
square
#5E1985 #852819 #408519 #197685
split-complementary
#5E1985 #768519 #198528
monochromatic
#15061E #3A0F51 #5E1985 #8223B9 #A23EDB

Accessibility & contrast

On white

10.75
#5E1985 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#5E1985 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1985
10.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1985#FFFFFF#000000##FFFFFF
##5E19851.0010.751.9510.75
#FFFFFF10.751.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B88
Deuteranopia (green-blind)
#003F83
Tritanopia (blue-blind)
#58344F
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5e1985;
/* rgb */ color: rgb(94, 25, 133);
/* oklch */ color: oklch(38.4% 0.169 309.4);
Tailwind
colors: {
  custom: {
    50: '#905fa9',
    500: '#5e1985',
    950: '#000000',
  },
}
SCSS
$custom: #5e1985;
$custom-light: #905fa9;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1985",
  "rgb": {
    "r": 94,
    "g": 25,
    "b": 133
  },
  "hsl": {
    "h": 278.333,
    "s": 68.354,
    "l": 30.98
  },
  "oklch": {
    "l": 0.38448,
    "c": 0.16876,
    "h": 309.4
  },
  "luminance": 0.04768
}

Semantic roles & 50–950 ramp

primary
#5E1985
secondary
#6CB941
accent
#EB3D7C
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5E1985

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

Preview Lab → · Contrast checker → · Palette generator →

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