#5E2A9A#5E2A9A

#5E2A9A is a dark, vivid violet. Relative luminance 0.064; OKLCH L 42.0% C 0.172 H 300.2°. Best body text is #FFFFFF at 9.24:1 contrast (WCAG AA passes).

Color values

HEX#5E2A9A
RGBrgb(94, 42, 154)
HSLhsl(268, 57%, 38%)
HSVhsv(268, 73%, 60%)
CMYKcmyk(39%, 72.7%, 0%, 39.6%)
CIE-LABlab(30.32, 46.01, -51.99)
CIE-LCHlch(30.32, 69.42, 311.51°)
OKLaboklab(41.98% 0.0864 -0.1483)
OKLCHoklch(41.98% 0.172 300.2)
XYZxyz(11.2753, 6.3686, 31.2008)
Luminance0.0637 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2A9A #669A2A
analogous
#2A2E9A #5E2A9A #962A9A
triadic
#5E2A9A #9A5E2A #2A9A5E
tetradic
#5E2A9A #9A2A2E #669A2A #2A9A96
square
#5E2A9A #9A2A2E #669A2A #2A9A96
split-complementary
#5E2A9A #9A962A #2E9A2A
monochromatic
#23103A #411D6A #5E2A9A #7B38C9 #9B68D6

Accessibility & contrast

On white

9.24
#5E2A9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#5E2A9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2A9A
9.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2A9A#FFFFFF#000000##FFFFFF
##5E2A9A1.009.242.279.24
#FFFFFF9.241.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479D
Deuteranopia (green-blind)
#004798
Tritanopia (blue-blind)
#50465F
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5e2a9a;
/* rgb */ color: rgb(94, 42, 154);
/* oklch */ color: oklch(42.0% 0.172 300.2);
Tailwind
colors: {
  custom: {
    50: '#9168b9',
    500: '#5e2a9a',
    950: '#000000',
  },
}
SCSS
$custom: #5e2a9a;
$custom-light: #9168b9;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2a9a",
  "rgb": {
    "r": 94,
    "g": 42,
    "b": 154
  },
  "hsl": {
    "h": 267.857,
    "s": 57.143,
    "l": 38.431
  },
  "oklch": {
    "l": 0.41983,
    "c": 0.17165,
    "h": 300.2
  },
  "luminance": 0.06369
}

Semantic roles & 50–950 ramp

primary
#5E2A9A
secondary
#93BC63
accent
#E04799
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5E2A9A

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

Preview Lab → · Contrast checker → · Palette generator →

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