#5E296F#5E296F

#5E296F is a dark, vivid purple. Relative luminance 0.051; OKLCH L 38.7% C 0.125 H 317.2°. Best body text is #FFFFFF at 10.38:1 contrast (WCAG AA passes).

Color values

HEX#5E296F
RGBrgb(94, 41, 111)
HSLhsl(285, 46%, 30%)
HSVhsv(285, 63%, 44%)
CMYKcmyk(15.3%, 63.1%, 0%, 56.5%)
CIE-LABlab(27.06, 36.04, -30.39)
CIE-LCHlch(27.06, 47.15, 319.87°)
OKLaboklab(38.66% 0.0916 -0.0849)
OKLCHoklch(38.66% 0.125 317.2)
XYZxyz(8.2779, 5.1136, 15.5868)
Luminance0.0511 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E296F #3A6F29
analogous
#3B296F #5E296F #6F295D
triadic
#5E296F #6F5E29 #296F5E
tetradic
#5E296F #6F3B29 #3A6F29 #295D6F
square
#5E296F #6F3B29 #3A6F29 #295D6F
split-complementary
#5E296F #5D6F29 #296F3B
monochromatic
#130816 #381842 #5E296F #843A9C #A553BF

Accessibility & contrast

On white

10.38
#5E296F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#5E296F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E296F
10.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E296F#FFFFFF#000000##FFFFFF
##5E296F1.0010.382.0210.38
#FFFFFF10.381.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#163D71
Deuteranopia (green-blind)
#2B426D
Tritanopia (blue-blind)
#5D3548
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #5e296f;
/* rgb */ color: rgb(94, 41, 111);
/* oklch */ color: oklch(38.7% 0.125 317.2);
Tailwind
colors: {
  custom: {
    50: '#8e6699',
    500: '#5e296f',
    950: '#000000',
  },
}
SCSS
$custom: #5e296f;
$custom-light: #8e6699;
$custom-dark: #000000;
JSON
{
  "hex": "#5e296f",
  "rgb": {
    "r": 94,
    "g": 41,
    "b": 111
  },
  "hsl": {
    "h": 285.429,
    "s": 46.053,
    "l": 29.804
  },
  "oklch": {
    "l": 0.38657,
    "c": 0.12495,
    "h": 317.2
  },
  "luminance": 0.05113
}

Semantic roles & 50–950 ramp

primary
#5E296F
secondary
#66A153
accent
#D65272
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0C060E
muted
#7D7A7E

Preview Lab

Preview with #5E296F

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

Preview Lab → · Contrast checker → · Palette generator →

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