#4E127C#4E127C

#4E127C is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.8% C 0.162 H 304.3°. Best body text is #FFFFFF at 12.34:1 contrast (WCAG AA passes).

Color values

HEX#4E127C
RGBrgb(78, 18, 124)
HSLhsl(274, 75%, 28%)
HSVhsv(274, 85%, 49%)
CMYKcmyk(37.1%, 85.5%, 0%, 51.4%)
CIE-LABlab(21.97, 45.87, -47.02)
CIE-LCHlch(21.97, 65.69, 314.29°)
OKLaboklab(34.84% 0.0915 -0.1341)
OKLCHoklch(34.84% 0.162 304.3)
XYZxyz(6.9954, 3.5076, 19.3734)
Luminance0.0351 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E127C #407C12
analogous
#19127C #4E127C #7C1275
triadic
#4E127C #7C4E12 #127C4E
tetradic
#4E127C #7C1912 #407C12 #12757C
square
#4E127C #7C1912 #407C12 #12757C
split-complementary
#4E127C #757C12 #127C19
monochromatic
#11041B #2C0A47 #4E127C #701AB1 #9029E0

Accessibility & contrast

On white

12.34
#4E127C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#4E127C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E127C
12.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E127C#FFFFFF#000000##FFFFFF
##4E127C1.0012.341.7012.34
#FFFFFF12.341.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337F
Deuteranopia (green-blind)
#00347A
Tritanopia (blue-blind)
#453049
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4e127c;
/* rgb */ color: rgb(78, 18, 124);
/* oklch */ color: oklch(34.8% 0.162 304.3);
Tailwind
colors: {
  custom: {
    50: '#8559a3',
    500: '#4e127c',
    950: '#000000',
  },
}
SCSS
$custom: #4e127c;
$custom-light: #8559a3;
$custom-dark: #000000;
JSON
{
  "hex": "#4e127c",
  "rgb": {
    "r": 78,
    "g": 18,
    "b": 124
  },
  "hsl": {
    "h": 273.962,
    "s": 74.648,
    "l": 27.843
  },
  "oklch": {
    "l": 0.34844,
    "c": 0.16237,
    "h": 304.3
  },
  "luminance": 0.03508
}

Semantic roles & 50–950 ramp

primary
#4E127C
secondary
#6DB238
accent
#F13788
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #4E127C

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

Preview Lab → · Contrast checker → · Palette generator →

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