#4E127E#4E127E

#4E127E is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.0% C 0.164 H 303.5°. Best body text is #FFFFFF at 12.27:1 contrast (WCAG AA passes).

Color values

HEX#4E127E
RGBrgb(78, 18, 126)
HSLhsl(273, 75%, 28%)
HSVhsv(273, 86%, 49%)
CMYKcmyk(38.1%, 85.7%, 0%, 50.6%)
CIE-LABlab(22.16, 46.34, -47.99)
CIE-LCHlch(22.16, 66.72, 314.00°)
OKLaboklab(35.03% 0.0908 -0.137)
OKLCHoklch(35.03% 0.164 303.5)
XYZxyz(7.1232, 3.5587, 20.0462)
Luminance0.0356 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E127E #427E12
analogous
#18127E #4E127E #7E1278
triadic
#4E127E #7E4E12 #127E4E
tetradic
#4E127E #7E1812 #427E12 #12787E
square
#4E127E #7E1812 #427E12 #12787E
split-complementary
#4E127E #787E12 #127E18
monochromatic
#11041B #2D0A48 #4E127E #6F1AB4 #8F2AE1

Accessibility & contrast

On white

12.27
#4E127E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#4E127E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E127E
12.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E127E#FFFFFF#000000##FFFFFF
##4E127E1.0012.271.7112.27
#FFFFFF12.271.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003481
Deuteranopia (green-blind)
#00357C
Tritanopia (blue-blind)
#44314A
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4e127e;
/* rgb */ color: rgb(78, 18, 126);
/* oklch */ color: oklch(35.0% 0.164 303.5);
Tailwind
colors: {
  custom: {
    50: '#8559a4',
    500: '#4e127e',
    950: '#000000',
  },
}
SCSS
$custom: #4e127e;
$custom-light: #8559a4;
$custom-dark: #000000;
JSON
{
  "hex": "#4e127e",
  "rgb": {
    "r": 78,
    "g": 18,
    "b": 126
  },
  "hsl": {
    "h": 273.333,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.35027,
    "c": 0.16436,
    "h": 303.5
  },
  "luminance": 0.03559
}

Semantic roles & 50–950 ramp

primary
#4E127E
secondary
#6FB438
accent
#F23689
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #4E127E

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

Preview Lab → · Contrast checker → · Palette generator →

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