#5E1F82#5E1F82

#5E1F82 is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.8% C 0.159 H 309.9°. Best body text is #FFFFFF at 10.53:1 contrast (WCAG AA passes).

Color values

HEX#5E1F82
RGBrgb(94, 31, 130)
HSLhsl(278, 61%, 32%)
HSVhsv(278, 76%, 51%)
CMYKcmyk(27.7%, 76.2%, 0%, 49%)
CIE-LABlab(26.65, 45.17, -43.09)
CIE-LCHlch(26.65, 62.43, 316.35°)
OKLaboklab(38.79% 0.1022 -0.1221)
OKLCHoklch(38.79% 0.159 309.9)
XYZxyz(9.1345, 4.9716, 21.5932)
Luminance0.0497 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1F82 #43821F
analogous
#2D1F82 #5E1F82 #821F75
triadic
#5E1F82 #825E1F #1F825E
tetradic
#5E1F82 #822D1F #43821F #1F7582
square
#5E1F82 #822D1F #43821F #1F7582
split-complementary
#5E1F82 #75821F #1F822D
monochromatic
#17071F #3A1351 #5E1F82 #822BB3 #A148D3

Accessibility & contrast

On white

10.53
#5E1F82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#5E1F82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1F82
10.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1F82#FFFFFF#000000##FFFFFF
##5E1F821.0010.531.9910.53
#FFFFFF10.531.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C85
Deuteranopia (green-blind)
#074080
Tritanopia (blue-blind)
#59364F
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5e1f82;
/* rgb */ color: rgb(94, 31, 130);
/* oklch */ color: oklch(38.8% 0.159 309.9);
Tailwind
colors: {
  custom: {
    50: '#9061a7',
    500: '#5e1f82',
    950: '#000000',
  },
}
SCSS
$custom: #5e1f82;
$custom-light: #9061a7;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1f82",
  "rgb": {
    "r": 94,
    "g": 31,
    "b": 130
  },
  "hsl": {
    "h": 278.182,
    "s": 61.491,
    "l": 31.569
  },
  "oklch": {
    "l": 0.38788,
    "c": 0.15921,
    "h": 309.9
  },
  "luminance": 0.04971
}

Semantic roles & 50–950 ramp

primary
#5E1F82
secondary
#70B548
accent
#E5437E
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D050F
muted
#7E7A7F

Preview Lab

Preview with #5E1F82

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

Preview Lab → · Contrast checker → · Palette generator →

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