#5E1D98#5E1D98

#5E1D98 is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.4% C 0.184 H 302.5°. Best body text is #FFFFFF at 9.98:1 contrast (WCAG AA passes).

Color values

HEX#5E1D98
RGBrgb(94, 29, 152)
HSLhsl(272, 68%, 35%)
HSVhsv(272, 81%, 60%)
CMYKcmyk(38.2%, 80.9%, 0%, 40.4%)
CIE-LABlab(28.18, 51.15, -54.26)
CIE-LCHlch(28.18, 74.57, 313.31°)
OKLaboklab(40.42% 0.0987 -0.1549)
OKLCHoklch(40.42% 0.184 302.5)
XYZxyz(10.7216, 5.5254, 30.2013)
Luminance0.0553 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1D98 #57981D
analogous
#201D98 #5E1D98 #981D94
triadic
#5E1D98 #985E1D #1D985E
tetradic
#5E1D98 #98201D #57981D #1D9498
square
#5E1D98 #98201D #57981D #1D9498
split-complementary
#5E1D98 #94981D #1D9820
monochromatic
#1E0931 #3E1365 #5E1D98 #7E27CB #9C52DE

Accessibility & contrast

On white

9.98
#5E1D98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#5E1D98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1D98
9.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1D98#FFFFFF#000000##FFFFFF
##5E1D981.009.982.119.98
#FFFFFF9.981.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419B
Deuteranopia (green-blind)
#004296
Tritanopia (blue-blind)
#523F5B
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5e1d98;
/* rgb */ color: rgb(94, 29, 152);
/* oklch */ color: oklch(40.4% 0.184 302.5);
Tailwind
colors: {
  custom: {
    50: '#9262b7',
    500: '#5e1d98',
    950: '#000000',
  },
}
SCSS
$custom: #5e1d98;
$custom-light: #9262b7;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1d98",
  "rgb": {
    "r": 94,
    "g": 29,
    "b": 152
  },
  "hsl": {
    "h": 271.707,
    "s": 67.956,
    "l": 35.49
  },
  "oklch": {
    "l": 0.40425,
    "c": 0.18367,
    "h": 302.5
  },
  "luminance": 0.05525
}

Semantic roles & 50–950 ramp

primary
#5E1D98
secondary
#85C150
accent
#EB3D8F
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0511
muted
#7E7A80

Preview Lab

Preview with #5E1D98

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

Preview Lab → · Contrast checker → · Palette generator →

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