#5E128A#5E128A

#5E128A is a dark, vivid violet. Relative luminance 0.046; OKLCH L 38.3% C 0.180 H 308.1°. Best body text is #FFFFFF at 10.88:1 contrast (WCAG AA passes).

Color values

HEX#5E128A
RGBrgb(94, 18, 138)
HSLhsl(278, 77%, 31%)
HSVhsv(278, 87%, 54%)
CMYKcmyk(31.9%, 87%, 0%, 45.9%)
CIE-LABlab(25.71, 51.61, -49.64)
CIE-LCHlch(25.71, 71.61, 316.12°)
OKLaboklab(38.33% 0.1109 -0.1413)
OKLCHoklch(38.33% 0.18 308.1)
XYZxyz(9.4189, 4.6474, 24.4407)
Luminance0.0465 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E128A #3E8A12
analogous
#22128A #5E128A #8A127A
triadic
#5E128A #8A5E12 #128A5E
tetradic
#5E128A #8A2212 #3E8A12 #127A8A
square
#5E128A #8A2212 #3E8A12 #127A8A
split-complementary
#5E128A #7A8A12 #128A22
monochromatic
#14041E #390B54 #5E128A #8319C0 #A332E4

Accessibility & contrast

On white

10.88
#5E128A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#5E128A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E128A
10.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E128A#FFFFFF#000000##FFFFFF
##5E128A1.0010.881.9310.88
#FFFFFF10.881.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.881.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5e128a;
/* rgb */ color: rgb(94, 18, 138);
/* oklch */ color: oklch(38.3% 0.180 308.1);
Tailwind
colors: {
  custom: {
    50: '#915dad',
    500: '#5e128a',
    950: '#000000',
  },
}
SCSS
$custom: #5e128a;
$custom-light: #915dad;
$custom-dark: #000000;
JSON
{
  "hex": "#5e128a",
  "rgb": {
    "r": 94,
    "g": 18,
    "b": 138
  },
  "hsl": {
    "h": 278,
    "s": 76.923,
    "l": 30.588
  },
  "oklch": {
    "l": 0.38329,
    "c": 0.17962,
    "h": 308.1
  },
  "luminance": 0.04647
}

Semantic roles & 50–950 ramp

primary
#5E128A
secondary
#6ABF39
accent
#F3347A
background
#F9F5FA
surface
#F2E9F4
border
#CCC5CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5E128A

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

Preview Lab → · Contrast checker → · Palette generator →

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