#4E128F#4E128F

#4E128F is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.6% C 0.181 H 297.8°. Best body text is #FFFFFF at 11.62:1 contrast (WCAG AA passes).

Color values

HEX#4E128F
RGBrgb(78, 18, 143)
HSLhsl(269, 78%, 32%)
HSVhsv(269, 87%, 56%)
CMYKcmyk(45.5%, 87.4%, 0%, 43.9%)
CIE-LABlab(23.79, 50.46, -55.99)
CIE-LCHlch(23.79, 75.37, 312.03°)
OKLaboklab(36.65% 0.0846 -0.1605)
OKLCHoklch(36.65% 0.181 297.8)
XYZxyz(8.3148, 4.0353, 26.3221)
Luminance0.0403 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E128F #538F12
analogous
#12158F #4E128F #8D128F
triadic
#4E128F #8F4E12 #128F4E
tetradic
#4E128F #8F1215 #538F12 #128F8D
square
#4E128F #8F1215 #538F12 #128F8D
split-complementary
#4E128F #8F8D12 #158F12
monochromatic
#130422 #300B59 #4E128F #6C19C5 #8A36E6

Accessibility & contrast

On white

11.62
#4E128F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#4E128F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E128F
11.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E128F#FFFFFF#000000##FFFFFF
##4E128F1.0011.621.8111.62
#FFFFFF11.621.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003992
Deuteranopia (green-blind)
#00378D
Tritanopia (blue-blind)
#3D3854
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4e128f;
/* rgb */ color: rgb(78, 18, 143);
/* oklch */ color: oklch(36.6% 0.181 297.8);
Tailwind
colors: {
  custom: {
    50: '#875bb1',
    500: '#4e128f',
    950: '#000000',
  },
}
SCSS
$custom: #4e128f;
$custom-light: #875bb1;
$custom-dark: #000000;
JSON
{
  "hex": "#4e128f",
  "rgb": {
    "r": 78,
    "g": 18,
    "b": 143
  },
  "hsl": {
    "h": 268.8,
    "s": 77.64,
    "l": 31.569
  },
  "oklch": {
    "l": 0.3665,
    "c": 0.18138,
    "h": 297.8
  },
  "luminance": 0.04035
}

Semantic roles & 50–950 ramp

primary
#4E128F
secondary
#81C33A
accent
#F43498
background
#F8F5FB
surface
#F0E9F6
border
#CBC5D0
text
#0C0411
muted
#7D7980

Preview Lab

Preview with #4E128F

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

Preview Lab → · Contrast checker → · Palette generator →

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