#4E138E#4E138E

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

Color values

HEX#4E138E
RGBrgb(78, 19, 142)
HSLhsl(269, 76%, 32%)
HSVhsv(269, 87%, 56%)
CMYKcmyk(45.1%, 86.6%, 0%, 44.3%)
CIE-LABlab(23.80, 49.89, -55.35)
CIE-LCHlch(23.80, 74.52, 312.03°)
OKLaboklab(36.63% 0.0844 -0.1586)
OKLCHoklch(36.63% 0.18 298)
XYZxyz(8.2560, 4.0383, 25.9304)
Luminance0.0404 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E138E #538E13
analogous
#13168E #4E138E #8C138E
triadic
#4E138E #8E4E13 #138E4E
tetradic
#4E138E #8E1316 #538E13 #138E8C
square
#4E138E #8E1316 #538E13 #138E8C
split-complementary
#4E138E #8E8C13 #168E13
monochromatic
#130522 #300C58 #4E138E #6C1AC4 #8A37E4

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4E138E#FFFFFF#000000##FFFFFF
##4E138E1.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)
#003991
Deuteranopia (green-blind)
#00378C
Tritanopia (blue-blind)
#3D3853
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4e138e;
/* rgb */ color: rgb(78, 19, 142);
/* oklch */ color: oklch(36.6% 0.180 298.0);
Tailwind
colors: {
  custom: {
    50: '#875bb0',
    500: '#4e138e',
    950: '#000000',
  },
}
SCSS
$custom: #4e138e;
$custom-light: #875bb0;
$custom-dark: #000000;
JSON
{
  "hex": "#4e138e",
  "rgb": {
    "r": 78,
    "g": 19,
    "b": 142
  },
  "hsl": {
    "h": 268.78,
    "s": 76.398,
    "l": 31.569
  },
  "oklch": {
    "l": 0.36626,
    "c": 0.17964,
    "h": 298
  },
  "luminance": 0.04038
}

Semantic roles & 50–950 ramp

primary
#4E138E
secondary
#81C23B
accent
#F33598
background
#F8F5FB
surface
#F0E9F6
border
#CBC5D0
text
#0C0411
muted
#7D7980

Preview Lab

Preview with #4E138E

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

Preview Lab → · Contrast checker → · Palette generator →

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