#5E2298#5E2298

#5E2298 is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.9% C 0.179 H 301.9°. Best body text is #FFFFFF at 9.73:1 contrast (WCAG AA passes).

Color values

HEX#5E2298
RGBrgb(94, 34, 152)
HSLhsl(271, 63%, 36%)
HSVhsv(271, 78%, 60%)
CMYKcmyk(38.2%, 77.6%, 0%, 40.4%)
CIE-LABlab(28.88, 49.14, -53.12)
CIE-LCHlch(28.88, 72.36, 312.77°)
OKLaboklab(40.91% 0.0945 -0.1516)
OKLCHoklch(40.91% 0.179 301.9)
XYZxyz(10.8542, 5.7907, 30.2455)
Luminance0.0579 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2298 #5C9822
analogous
#232298 #5E2298 #982297
triadic
#5E2298 #985E22 #22985E
tetradic
#5E2298 #982322 #5C9822 #229798
square
#5E2298 #982322 #5C9822 #229798
split-complementary
#5E2298 #979822 #229823
monochromatic
#200C34 #3F1766 #5E2298 #7D2DCA #9B5ADA

Accessibility & contrast

On white

9.73
#5E2298 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#5E2298 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2298
9.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2298#FFFFFF#000000##FFFFFF
##5E22981.009.732.169.73
#FFFFFF9.731.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439B
Deuteranopia (green-blind)
#004496
Tritanopia (blue-blind)
#51415C
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5e2298;
/* rgb */ color: rgb(94, 34, 152);
/* oklch */ color: oklch(40.9% 0.179 301.9);
Tailwind
colors: {
  custom: {
    50: '#9164b7',
    500: '#5e2298',
    950: '#000000',
  },
}
SCSS
$custom: #5e2298;
$custom-light: #9164b7;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2298",
  "rgb": {
    "r": 94,
    "g": 34,
    "b": 152
  },
  "hsl": {
    "h": 270.508,
    "s": 63.441,
    "l": 36.471
  },
  "oklch": {
    "l": 0.40911,
    "c": 0.17863,
    "h": 301.9
  },
  "luminance": 0.05791
}

Semantic roles & 50–950 ramp

primary
#5E2298
secondary
#8ABE57
accent
#E64193
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5E2298

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

Preview Lab → · Contrast checker → · Palette generator →

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