#5E2492#5E2492

#5E2492 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.6% C 0.170 H 303.6°. Best body text is #FFFFFF at 9.80:1 contrast (WCAG AA passes).

Color values

HEX#5E2492
RGBrgb(94, 36, 146)
HSLhsl(272, 60%, 36%)
HSVhsv(272, 75%, 57%)
CMYKcmyk(35.6%, 75.3%, 0%, 42.7%)
CIE-LABlab(28.69, 46.80, -49.75)
CIE-LCHlch(28.69, 68.30, 313.25°)
OKLaboklab(40.62% 0.094 -0.1417)
OKLCHoklch(40.62% 0.17 303.6)
XYZxyz(10.4341, 5.7168, 27.7423)
Luminance0.0572 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2492 #589224
analogous
#272492 #5E2492 #92248F
triadic
#5E2492 #925E24 #24925E
tetradic
#5E2492 #922724 #589224 #248F92
square
#5E2492 #922724 #589224 #248F92
split-complementary
#5E2492 #8F9224 #249227
monochromatic
#1F0C30 #3E1861 #5E2492 #7E30C3 #9C5AD6

Accessibility & contrast

On white

9.80
#5E2492 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#5E2492 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2492
9.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2492#FFFFFF#000000##FFFFFF
##5E24921.009.802.149.80
#FFFFFF9.801.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.801.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5e2492;
/* rgb */ color: rgb(94, 36, 146);
/* oklch */ color: oklch(40.6% 0.170 303.6);
Tailwind
colors: {
  custom: {
    50: '#9165b3',
    500: '#5e2492',
    950: '#000000',
  },
}
SCSS
$custom: #5e2492;
$custom-light: #9165b3;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2492",
  "rgb": {
    "r": 94,
    "g": 36,
    "b": 146
  },
  "hsl": {
    "h": 271.636,
    "s": 60.44,
    "l": 35.686
  },
  "oklch": {
    "l": 0.40622,
    "c": 0.17006,
    "h": 303.6
  },
  "luminance": 0.05717
}

Semantic roles & 50–950 ramp

primary
#5E2492
secondary
#86BB57
accent
#E44490
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5E2492

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

Preview Lab → · Contrast checker → · Palette generator →

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