#5E148A#5E148A

#5E148A is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.5% C 0.178 H 308.0°. Best body text is #FFFFFF at 10.81:1 contrast (WCAG AA passes).

Color values

HEX#5E148A
RGBrgb(94, 20, 138)
HSLhsl(278, 75%, 31%)
HSVhsv(278, 86%, 54%)
CMYKcmyk(31.9%, 85.5%, 0%, 45.9%)
CIE-LABlab(25.91, 51.02, -49.31)
CIE-LCHlch(25.91, 70.96, 315.98°)
OKLaboklab(38.47% 0.1096 -0.1403)
OKLCHoklch(38.47% 0.178 308)
XYZxyz(9.4527, 4.7151, 24.4520)
Luminance0.0471 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E148A #408A14
analogous
#23148A #5E148A #8A147B
triadic
#5E148A #8A5E14 #148A5E
tetradic
#5E148A #8A2314 #408A14 #147B8A
square
#5E148A #8A2314 #408A14 #147B8A
split-complementary
#5E148A #7B8A14 #148A23
monochromatic
#15051F #3A0C55 #5E148A #821CBF #A236E2

Accessibility & contrast

On white

10.81
#5E148A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#5E148A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E148A
10.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E148A#FFFFFF#000000##FFFFFF
##5E148A1.0010.811.9410.81
#FFFFFF10.811.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8D
Deuteranopia (green-blind)
#003E88
Tritanopia (blue-blind)
#573551
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5e148a;
/* rgb */ color: rgb(94, 20, 138);
/* oklch */ color: oklch(38.5% 0.178 308.0);
Tailwind
colors: {
  custom: {
    50: '#915dad',
    500: '#5e148a',
    950: '#000000',
  },
}
SCSS
$custom: #5e148a;
$custom-light: #915dad;
$custom-dark: #000000;
JSON
{
  "hex": "#5e148a",
  "rgb": {
    "r": 94,
    "g": 20,
    "b": 138
  },
  "hsl": {
    "h": 277.627,
    "s": 74.684,
    "l": 30.98
  },
  "oklch": {
    "l": 0.38468,
    "c": 0.17804,
    "h": 308
  },
  "luminance": 0.04715
}

Semantic roles & 50–950 ramp

primary
#5E148A
secondary
#6CBE3C
accent
#F1367C
background
#F9F5FA
surface
#F2E9F4
border
#CCC5CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5E148A

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

Preview Lab → · Contrast checker → · Palette generator →

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