#5E298E#5E298E

#5E298E is a dark, vivid violet. Relative luminance 0.059; OKLCH L 40.9% C 0.160 H 304.2°. Best body text is #FFFFFF at 9.62:1 contrast (WCAG AA passes).

Color values

HEX#5E298E
RGBrgb(94, 41, 142)
HSLhsl(271, 55%, 36%)
HSVhsv(271, 71%, 56%)
CMYKcmyk(33.8%, 71.1%, 0%, 44.3%)
CIE-LABlab(29.21, 43.45, -46.43)
CIE-LCHlch(29.21, 63.59, 313.10°)
OKLaboklab(40.89% 0.0895 -0.132)
OKLCHoklch(40.89% 0.16 304.2)
XYZxyz(10.2904, 5.9186, 26.1862)
Luminance0.0592 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E298E #598E29
analogous
#2B298E #5E298E #8E298B
triadic
#5E298E #8E5E29 #298E5E
tetradic
#5E298E #8E2B29 #598E29 #298B8E
square
#5E298E #8E2B29 #598E29 #298B8E
split-complementary
#5E298E #8B8E29 #298E2B
monochromatic
#1F0E2F #3F1B5F #5E298E #7D37BD #9B60D1

Accessibility & contrast

On white

9.62
#5E298E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5E298E
9.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E298E#FFFFFF#000000##FFFFFF
##5E298E1.009.622.189.62
#FFFFFF9.621.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.621.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5e298e;
/* rgb */ color: rgb(94, 41, 142);
/* oklch */ color: oklch(40.9% 0.160 304.2);
Tailwind
colors: {
  custom: {
    50: '#9067b0',
    500: '#5e298e',
    950: '#000000',
  },
}
SCSS
$custom: #5e298e;
$custom-light: #9067b0;
$custom-dark: #000000;
JSON
{
  "hex": "#5e298e",
  "rgb": {
    "r": 94,
    "g": 41,
    "b": 142
  },
  "hsl": {
    "h": 271.485,
    "s": 55.191,
    "l": 35.882
  },
  "oklch": {
    "l": 0.40892,
    "c": 0.1595,
    "h": 304.2
  },
  "luminance": 0.05919
}

Semantic roles & 50–950 ramp

primary
#5E298E
secondary
#87B75C
accent
#DF4990
background
#F9F6FA
surface
#F1EBF5
border
#CBC6CF
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5E298E

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

Preview Lab → · Contrast checker → · Palette generator →

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