#5E2292#5E2292

#5E2292 is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.4% C 0.172 H 303.8°. Best body text is #FFFFFF at 9.91:1 contrast (WCAG AA passes).

Color values

HEX#5E2292
RGBrgb(94, 34, 146)
HSLhsl(272, 62%, 35%)
HSVhsv(272, 77%, 57%)
CMYKcmyk(35.6%, 76.7%, 0%, 42.7%)
CIE-LABlab(28.38, 47.68, -50.25)
CIE-LCHlch(28.38, 69.27, 313.49°)
OKLaboklab(40.4% 0.0959 -0.1432)
OKLCHoklch(40.4% 0.172 303.8)
XYZxyz(10.3752, 5.5991, 27.7227)
Luminance0.0560 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2292 #569222
analogous
#262292 #5E2292 #92228E
triadic
#5E2292 #925E22 #22925E
tetradic
#5E2292 #922622 #569222 #228E92
square
#5E2292 #922622 #569222 #228E92
split-complementary
#5E2292 #8E9222 #229226
monochromatic
#1E0B2F #3E1660 #5E2292 #7E2EC4 #9C57D8

Accessibility & contrast

On white

9.91
#5E2292 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#5E2292 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2292
9.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2292#FFFFFF#000000##FFFFFF
##5E22921.009.912.129.91
#FFFFFF9.911.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004295
Deuteranopia (green-blind)
#004390
Tritanopia (blue-blind)
#543E59
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5e2292;
/* rgb */ color: rgb(94, 34, 146);
/* oklch */ color: oklch(40.4% 0.172 303.8);
Tailwind
colors: {
  custom: {
    50: '#9164b3',
    500: '#5e2292',
    950: '#000000',
  },
}
SCSS
$custom: #5e2292;
$custom-light: #9164b3;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2292",
  "rgb": {
    "r": 94,
    "g": 34,
    "b": 146
  },
  "hsl": {
    "h": 272.143,
    "s": 62.222,
    "l": 35.294
  },
  "oklch": {
    "l": 0.40404,
    "c": 0.17233,
    "h": 303.8
  },
  "luminance": 0.05599
}

Semantic roles & 50–950 ramp

primary
#5E2292
secondary
#84BC54
accent
#E5438E
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5E2292

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

Preview Lab → · Contrast checker → · Palette generator →

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