#5E148B#5E148B

#5E148B is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.6% C 0.179 H 307.6°. Best body text is #FFFFFF at 10.78:1 contrast (WCAG AA passes).

Color values

HEX#5E148B
RGBrgb(94, 20, 139)
HSLhsl(277, 75%, 31%)
HSVhsv(277, 86%, 55%)
CMYKcmyk(32.4%, 85.6%, 0%, 45.5%)
CIE-LABlab(25.99, 51.24, -49.80)
CIE-LCHlch(25.99, 71.45, 315.82°)
OKLaboklab(38.56% 0.1093 -0.1417)
OKLCHoklch(38.56% 0.179 307.6)
XYZxyz(9.5255, 4.7442, 24.8350)
Luminance0.0474 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E148B #418B14
analogous
#22148B #5E148B #8B147C
triadic
#5E148B #8B5E14 #148B5E
tetradic
#5E148B #8B2214 #418B14 #147C8B
square
#5E148B #8B2214 #418B14 #147C8B
split-complementary
#5E148B #7C8B14 #148B22
monochromatic
#160520 #3A0C55 #5E148B #821CC1 #A237E2

Accessibility & contrast

On white

10.78
#5E148B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#5E148B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E148B
10.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E148B#FFFFFF#000000##FFFFFF
##5E148B1.0010.781.9510.78
#FFFFFF10.781.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8E
Deuteranopia (green-blind)
#003E89
Tritanopia (blue-blind)
#563552
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5e148b;
/* rgb */ color: rgb(94, 20, 139);
/* oklch */ color: oklch(38.6% 0.179 307.6);
Tailwind
colors: {
  custom: {
    50: '#915dae',
    500: '#5e148b',
    950: '#000000',
  },
}
SCSS
$custom: #5e148b;
$custom-light: #915dae;
$custom-dark: #000000;
JSON
{
  "hex": "#5e148b",
  "rgb": {
    "r": 94,
    "g": 20,
    "b": 139
  },
  "hsl": {
    "h": 277.311,
    "s": 74.843,
    "l": 31.176
  },
  "oklch": {
    "l": 0.38555,
    "c": 0.17897,
    "h": 307.6
  },
  "luminance": 0.04744
}

Semantic roles & 50–950 ramp

primary
#5E148B
secondary
#6DBF3C
accent
#F1367D
background
#F9F5FA
surface
#F2E9F4
border
#CCC5CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5E148B

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

Preview Lab → · Contrast checker → · Palette generator →

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