#5E2098#5E2098

#5E2098 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.7% C 0.181 H 302.2°. Best body text is #FFFFFF at 9.83:1 contrast (WCAG AA passes).

Color values

HEX#5E2098
RGBrgb(94, 32, 152)
HSLhsl(271, 65%, 36%)
HSVhsv(271, 79%, 60%)
CMYKcmyk(38.2%, 78.9%, 0%, 40.4%)
CIE-LABlab(28.59, 49.97, -53.59)
CIE-LCHlch(28.59, 73.27, 313.00°)
OKLaboklab(40.71% 0.0962 -0.153)
OKLCHoklch(40.71% 0.181 302.2)
XYZxyz(10.7987, 5.6797, 30.2270)
Luminance0.0568 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2098 #5A9820
analogous
#222098 #5E2098 #982096
triadic
#5E2098 #985E20 #20985E
tetradic
#5E2098 #982220 #5A9820 #209698
square
#5E2098 #982220 #5A9820 #209698
split-complementary
#5E2098 #969820 #209822
monochromatic
#1F0B33 #3F1565 #5E2098 #7D2BCB #9B57DC

Accessibility & contrast

On white

9.83
#5E2098 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#5E2098 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2098
9.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2098#FFFFFF#000000##FFFFFF
##5E20981.009.832.149.83
#FFFFFF9.831.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439B
Deuteranopia (green-blind)
#004396
Tritanopia (blue-blind)
#51405C
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5e2098;
/* rgb */ color: rgb(94, 32, 152);
/* oklch */ color: oklch(40.7% 0.181 302.2);
Tailwind
colors: {
  custom: {
    50: '#9263b7',
    500: '#5e2098',
    950: '#000000',
  },
}
SCSS
$custom: #5e2098;
$custom-light: #9263b7;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2098",
  "rgb": {
    "r": 94,
    "g": 32,
    "b": 152
  },
  "hsl": {
    "h": 271,
    "s": 65.217,
    "l": 36.078
  },
  "oklch": {
    "l": 0.40709,
    "c": 0.18071,
    "h": 302.2
  },
  "luminance": 0.0568
}

Semantic roles & 50–950 ramp

primary
#5E2098
secondary
#88BF54
accent
#E84091
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5E2098

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

Preview Lab → · Contrast checker → · Palette generator →

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