#5E1895#5E1895

#5E1895 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.7% C 0.185 H 303.9°. Best body text is #FFFFFF at 10.29:1 contrast (WCAG AA passes).

Color values

HEX#5E1895
RGBrgb(94, 24, 149)
HSLhsl(274, 72%, 34%)
HSVhsv(274, 84%, 58%)
CMYKcmyk(36.9%, 83.9%, 0%, 41.6%)
CIE-LABlab(27.31, 52.23, -53.85)
CIE-LCHlch(27.31, 75.02, 314.13°)
OKLaboklab(39.73% 0.1034 -0.1537)
OKLCHoklch(39.73% 0.185 303.9)
XYZxyz(10.3663, 5.2029, 28.8861)
Luminance0.0520 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1895 #4F9518
analogous
#201895 #5E1895 #95188E
triadic
#5E1895 #955E18 #18955E
tetradic
#5E1895 #952018 #4F9518 #188E95
square
#5E1895 #952018 #4F9518 #188E95
split-complementary
#5E1895 #8E9518 #189520
monochromatic
#1B072C #3D1060 #5E1895 #7F20CA #9D46E1

Accessibility & contrast

On white

10.29
#5E1895 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#5E1895 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1895
10.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1895#FFFFFF#000000##FFFFFF
##5E18951.0010.292.0410.29
#FFFFFF10.291.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F98
Deuteranopia (green-blind)
#004093
Tritanopia (blue-blind)
#533B58
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #5e1895;
/* rgb */ color: rgb(94, 24, 149);
/* oklch */ color: oklch(39.7% 0.185 303.9);
Tailwind
colors: {
  custom: {
    50: '#925fb5',
    500: '#5e1895',
    950: '#000000',
  },
}
SCSS
$custom: #5e1895;
$custom-light: #925fb5;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1895",
  "rgb": {
    "r": 94,
    "g": 24,
    "b": 149
  },
  "hsl": {
    "h": 273.6,
    "s": 72.254,
    "l": 33.922
  },
  "oklch": {
    "l": 0.39734,
    "c": 0.18519,
    "h": 303.9
  },
  "luminance": 0.05203
}

Semantic roles & 50–950 ramp

primary
#5E1895
secondary
#7DC246
accent
#EF3989
background
#F9F5FB
surface
#F2EAF6
border
#CCC6D0
text
#0E0511
muted
#7E7980

Preview Lab

Preview with #5E1895

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

Preview Lab → · Contrast checker → · Palette generator →

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