#5E1F94#5E1F94

#5E1F94 is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.3% C 0.178 H 303.5°. Best body text is #FFFFFF at 10.00:1 contrast (WCAG AA passes).

Color values

HEX#5E1F94
RGBrgb(94, 31, 148)
HSLhsl(272, 65%, 35%)
HSVhsv(272, 79%, 58%)
CMYKcmyk(36.5%, 79.1%, 0%, 42%)
CIE-LABlab(28.11, 49.41, -51.92)
CIE-LCHlch(28.11, 71.67, 313.58°)
OKLaboklab(40.27% 0.0981 -0.1481)
OKLCHoklch(40.27% 0.178 303.5)
XYZxyz(10.4501, 5.4978, 28.5219)
Luminance0.0550 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1F94 #55941F
analogous
#241F94 #5E1F94 #941F8F
triadic
#5E1F94 #945E1F #1F945E
tetradic
#5E1F94 #94241F #55941F #1F8F94
square
#5E1F94 #94241F #55941F #1F8F94
split-complementary
#5E1F94 #8F941F #1F9424
monochromatic
#1E0A2F #3E1461 #5E1F94 #7E2AC7 #9C53DB

Accessibility & contrast

On white

10.00
#5E1F94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#5E1F94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1F94
10.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1F94#FFFFFF#000000##FFFFFF
##5E1F941.0010.002.1010.00
#FFFFFF10.001.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004197
Deuteranopia (green-blind)
#004292
Tritanopia (blue-blind)
#533E59
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5e1f94;
/* rgb */ color: rgb(94, 31, 148);
/* oklch */ color: oklch(40.3% 0.178 303.5);
Tailwind
colors: {
  custom: {
    50: '#9162b4',
    500: '#5e1f94',
    950: '#000000',
  },
}
SCSS
$custom: #5e1f94;
$custom-light: #9162b4;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1f94",
  "rgb": {
    "r": 94,
    "g": 31,
    "b": 148
  },
  "hsl": {
    "h": 272.308,
    "s": 65.363,
    "l": 35.098
  },
  "oklch": {
    "l": 0.40267,
    "c": 0.17763,
    "h": 303.5
  },
  "luminance": 0.05498
}

Semantic roles & 50–950 ramp

primary
#5E1F94
secondary
#83BE51
accent
#E83F8D
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5E1F94

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

Preview Lab → · Contrast checker → · Palette generator →

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