#5E2A8B#5E2A8B

#5E2A8B is a dark, vivid violet. Relative luminance 0.059; OKLCH L 40.8% C 0.155 H 305.0°. Best body text is #FFFFFF at 9.63:1 contrast (WCAG AA passes).

Color values

HEX#5E2A8B
RGBrgb(94, 42, 139)
HSLhsl(272, 54%, 35%)
HSVhsv(272, 70%, 55%)
CMYKcmyk(32.4%, 69.8%, 0%, 45.5%)
CIE-LABlab(29.16, 42.20, -44.65)
CIE-LCHlch(29.16, 61.44, 313.38°)
OKLaboklab(40.79% 0.0888 -0.1268)
OKLCHoklch(40.79% 0.155 305)
XYZxyz(10.1032, 5.8998, 25.0276)
Luminance0.0590 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2A8B #578B2A
analogous
#2D2A8B #5E2A8B #8B2A87
triadic
#5E2A8B #8B5E2A #2A8B5E
tetradic
#5E2A8B #8B2D2A #578B2A #2A878B
square
#5E2A8B #8B2D2A #578B2A #2A878B
split-complementary
#5E2A8B #878B2A #2A8B2D
monochromatic
#1E0E2D #3E1C5C #5E2A8B #7E38BA #9C60CF

Accessibility & contrast

On white

9.63
#5E2A8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#5E2A8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2A8B
9.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2A8B#FFFFFF#000000##FFFFFF
##5E2A8B1.009.632.189.63
#FFFFFF9.631.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00438E
Deuteranopia (green-blind)
#074589
Tritanopia (blue-blind)
#564057
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5e2a8b;
/* rgb */ color: rgb(94, 42, 139);
/* oklch */ color: oklch(40.8% 0.155 305.0);
Tailwind
colors: {
  custom: {
    50: '#9068ae',
    500: '#5e2a8b',
    950: '#000000',
  },
}
SCSS
$custom: #5e2a8b;
$custom-light: #9068ae;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2a8b",
  "rgb": {
    "r": 94,
    "g": 42,
    "b": 139
  },
  "hsl": {
    "h": 272.165,
    "s": 53.591,
    "l": 35.49
  },
  "oklch": {
    "l": 0.40786,
    "c": 0.1548,
    "h": 305
  },
  "luminance": 0.059
}

Semantic roles & 50–950 ramp

primary
#5E2A8B
secondary
#85B55C
accent
#DD4B8F
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5E2A8B

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

Preview Lab → · Contrast checker → · Palette generator →

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