#5E1FA8#5E1FA8

#5E1FA8 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 42.0% C 0.198 H 297.7°. Best body text is #FFFFFF at 9.39:1 contrast (WCAG AA passes).

Color values

HEX#5E1FA8
RGBrgb(94, 31, 168)
HSLhsl(268, 69%, 39%)
HSVhsv(268, 82%, 66%)
CMYKcmyk(44%, 81.5%, 0%, 34.1%)
CIE-LABlab(29.88, 54.27, -61.20)
CIE-LCHlch(29.88, 81.80, 311.57°)
OKLaboklab(42.04% 0.0922 -0.1753)
OKLCHoklch(42.04% 0.198 297.7)
XYZxyz(12.1721, 6.1866, 37.5910)
Luminance0.0619 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1FA8 #69A81F
analogous
#1F25A8 #5E1FA8 #A31FA8
triadic
#5E1FA8 #A85E1F #1FA85E
tetradic
#5E1FA8 #A81F25 #69A81F #1FA8A3
square
#5E1FA8 #A81F25 #69A81F #1FA8A3
split-complementary
#5E1FA8 #A8A31F #25A81F
monochromatic
#240C41 #411574 #5E1FA8 #7B2CD8 #9B60E2

Accessibility & contrast

On white

9.39
#5E1FA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#5E1FA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1FA8
9.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1FA8#FFFFFF#000000##FFFFFF
##5E1FA81.009.392.249.39
#FFFFFF9.391.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047AC
Deuteranopia (green-blind)
#0045A5
Tritanopia (blue-blind)
#4B4665
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5e1fa8;
/* rgb */ color: rgb(94, 31, 168);
/* oklch */ color: oklch(42.0% 0.198 297.7);
Tailwind
colors: {
  custom: {
    50: '#9364c3',
    500: '#5e1fa8',
    950: '#000000',
  },
}
SCSS
$custom: #5e1fa8;
$custom-light: #9364c3;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1fa8",
  "rgb": {
    "r": 94,
    "g": 31,
    "b": 168
  },
  "hsl": {
    "h": 267.591,
    "s": 68.844,
    "l": 39.02
  },
  "oklch": {
    "l": 0.42044,
    "c": 0.19807,
    "h": 297.7
  },
  "luminance": 0.06187
}

Semantic roles & 50–950 ramp

primary
#5E1FA8
secondary
#96C65D
accent
#EC3C9B
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5E1FA8

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

Preview Lab → · Contrast checker → · Palette generator →

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