#5E298D#5E298D

#5E298D is a dark, vivid violet. Relative luminance 0.059; OKLCH L 40.8% C 0.158 H 304.5°. Best body text is #FFFFFF at 9.64:1 contrast (WCAG AA passes).

Color values

HEX#5E298D
RGBrgb(94, 41, 141)
HSLhsl(272, 55%, 36%)
HSVhsv(272, 71%, 55%)
CMYKcmyk(33.3%, 70.9%, 0%, 44.7%)
CIE-LABlab(29.13, 43.20, -45.94)
CIE-LCHlch(29.13, 63.06, 313.24°)
OKLaboklab(40.81% 0.0897 -0.1305)
OKLCHoklch(40.81% 0.158 304.5)
XYZxyz(10.2157, 5.8887, 25.7926)
Luminance0.0589 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E298D #588D29
analogous
#2C298D #5E298D #8D298A
triadic
#5E298D #8D5E29 #298D5E
tetradic
#5E298D #8D2C29 #588D29 #298A8D
square
#5E298D #8D2C29 #588D29 #298A8D
split-complementary
#5E298D #8A8D29 #298D2C
monochromatic
#1F0D2E #3E1B5E #5E298D #7E37BC #9C60D1

Accessibility & contrast

On white

9.64
#5E298D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#5E298D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E298D
9.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E298D#FFFFFF#000000##FFFFFF
##5E298D1.009.642.189.64
#FFFFFF9.641.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004390
Deuteranopia (green-blind)
#00458B
Tritanopia (blue-blind)
#554058
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5e298d;
/* rgb */ color: rgb(94, 41, 141);
/* oklch */ color: oklch(40.8% 0.158 304.5);
Tailwind
colors: {
  custom: {
    50: '#9067af',
    500: '#5e298d',
    950: '#000000',
  },
}
SCSS
$custom: #5e298d;
$custom-light: #9067af;
$custom-dark: #000000;
JSON
{
  "hex": "#5e298d",
  "rgb": {
    "r": 94,
    "g": 41,
    "b": 141
  },
  "hsl": {
    "h": 271.8,
    "s": 54.945,
    "l": 35.686
  },
  "oklch": {
    "l": 0.40813,
    "c": 0.15838,
    "h": 304.5
  },
  "luminance": 0.05889
}

Semantic roles & 50–950 ramp

primary
#5E298D
secondary
#86B65B
accent
#DE4A8F
background
#F9F6FA
surface
#F1EBF5
border
#CBC6CF
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5E298D

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

Preview Lab → · Contrast checker → · Palette generator →

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