#5E128F#5E128F

#5E128F is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.8% C 0.184 H 306.4°. Best body text is #FFFFFF at 10.72:1 contrast (WCAG AA passes).

Color values

HEX#5E128F
RGBrgb(94, 18, 143)
HSLhsl(276, 78%, 32%)
HSVhsv(276, 87%, 56%)
CMYKcmyk(34.3%, 87.4%, 0%, 43.9%)
CIE-LABlab(26.14, 52.72, -52.04)
CIE-LCHlch(26.14, 74.07, 315.37°)
OKLaboklab(38.77% 0.1093 -0.1483)
OKLCHoklch(38.77% 0.184 306.4)
XYZxyz(9.7892, 4.7956, 26.3912)
Luminance0.0479 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E128F #438F12
analogous
#20128F #5E128F #8F1282
triadic
#5E128F #8F5E12 #128F5E
tetradic
#5E128F #8F2012 #438F12 #12828F
square
#5E128F #8F2012 #438F12 #12828F
split-complementary
#5E128F #828F12 #128F20
monochromatic
#170422 #3A0B59 #5E128F #8219C5 #A136E6

Accessibility & contrast

On white

10.72
#5E128F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#5E128F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E128F
10.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E128F#FFFFFF#000000##FFFFFF
##5E128F1.0010.721.9610.72
#FFFFFF10.721.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C92
Deuteranopia (green-blind)
#003E8D
Tritanopia (blue-blind)
#553654
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5e128f;
/* rgb */ color: rgb(94, 18, 143);
/* oklch */ color: oklch(38.8% 0.184 306.4);
Tailwind
colors: {
  custom: {
    50: '#915db1',
    500: '#5e128f',
    950: '#000000',
  },
}
SCSS
$custom: #5e128f;
$custom-light: #915db1;
$custom-dark: #000000;
JSON
{
  "hex": "#5e128f",
  "rgb": {
    "r": 94,
    "g": 18,
    "b": 143
  },
  "hsl": {
    "h": 276.48,
    "s": 77.64,
    "l": 31.569
  },
  "oklch": {
    "l": 0.38767,
    "c": 0.18423,
    "h": 306.4
  },
  "luminance": 0.04795
}

Semantic roles & 50–950 ramp

primary
#5E128F
secondary
#70C33A
accent
#F4347F
background
#F9F5FB
surface
#F2E9F6
border
#CCC5D0
text
#0D0511
muted
#7E7980

Preview Lab

Preview with #5E128F

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

Preview Lab → · Contrast checker → · Palette generator →

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