#5E2A97#5E2A97

#5E2A97 is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.7% C 0.168 H 301.1°. Best body text is #FFFFFF at 9.32:1 contrast (WCAG AA passes).

Color values

HEX#5E2A97
RGBrgb(94, 42, 151)
HSLhsl(269, 56%, 38%)
HSVhsv(269, 72%, 59%)
CMYKcmyk(37.7%, 72.2%, 0%, 40.8%)
CIE-LABlab(30.08, 45.24, -50.54)
CIE-LCHlch(30.08, 67.83, 311.83°)
OKLaboklab(41.74% 0.087 -0.1441)
OKLCHoklch(41.74% 0.168 301.1)
XYZxyz(11.0286, 6.2699, 29.9013)
Luminance0.0627 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2A97 #63972A
analogous
#2A2C97 #5E2A97 #952A97
triadic
#5E2A97 #975E2A #2A975E
tetradic
#5E2A97 #972A2C #63972A #2A9795
square
#5E2A97 #972A2C #63972A #2A9795
split-complementary
#5E2A97 #97952A #2C972A
monochromatic
#220F37 #401D67 #5E2A97 #7C37C7 #9B67D5

Accessibility & contrast

On white

9.32
#5E2A97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#5E2A97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2A97
9.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2A97#FFFFFF#000000##FFFFFF
##5E2A971.009.322.259.32
#FFFFFF9.321.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00469A
Deuteranopia (green-blind)
#004695
Tritanopia (blue-blind)
#52445D
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5e2a97;
/* rgb */ color: rgb(94, 42, 151);
/* oklch */ color: oklch(41.7% 0.168 301.1);
Tailwind
colors: {
  custom: {
    50: '#9168b6',
    500: '#5e2a97',
    950: '#000000',
  },
}
SCSS
$custom: #5e2a97;
$custom-light: #9168b6;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2a97",
  "rgb": {
    "r": 94,
    "g": 42,
    "b": 151
  },
  "hsl": {
    "h": 268.624,
    "s": 56.477,
    "l": 37.843
  },
  "oklch": {
    "l": 0.41737,
    "c": 0.1683,
    "h": 301.1
  },
  "luminance": 0.0627
}

Semantic roles & 50–950 ramp

primary
#5E2A97
secondary
#90BB62
accent
#E04897
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5E2A97

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

Preview Lab → · Contrast checker → · Palette generator →

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