#4E137C#4E137C

#4E137C is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.9% C 0.161 H 304.2°. Best body text is #FFFFFF at 12.29:1 contrast (WCAG AA passes).

Color values

HEX#4E137C
RGBrgb(78, 19, 124)
HSLhsl(274, 73%, 28%)
HSVhsv(274, 85%, 49%)
CMYKcmyk(37.1%, 84.7%, 0%, 51.4%)
CIE-LABlab(22.09, 45.52, -46.83)
CIE-LCHlch(22.09, 65.30, 314.19°)
OKLaboklab(34.93% 0.0907 -0.1336)
OKLCHoklch(34.93% 0.161 304.2)
XYZxyz(7.0120, 3.5407, 19.3789)
Luminance0.0354 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E137C #417C13
analogous
#19137C #4E137C #7C1375
triadic
#4E137C #7C4E13 #137C4E
tetradic
#4E137C #7C1913 #417C13 #13757C
square
#4E137C #7C1913 #417C13 #13757C
split-complementary
#4E137C #757C13 #137C19
monochromatic
#11041B #2D0B47 #4E137C #6F1BB1 #902BDF

Accessibility & contrast

On white

12.29
#4E137C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E137C
12.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E137C#FFFFFF#000000##FFFFFF
##4E137C1.0012.291.7112.29
#FFFFFF12.291.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.291.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4e137c;
/* rgb */ color: rgb(78, 19, 124);
/* oklch */ color: oklch(34.9% 0.161 304.2);
Tailwind
colors: {
  custom: {
    50: '#855aa3',
    500: '#4e137c',
    950: '#000000',
  },
}
SCSS
$custom: #4e137c;
$custom-light: #855aa3;
$custom-dark: #000000;
JSON
{
  "hex": "#4e137c",
  "rgb": {
    "r": 78,
    "g": 19,
    "b": 124
  },
  "hsl": {
    "h": 273.714,
    "s": 73.427,
    "l": 28.039
  },
  "oklch": {
    "l": 0.34926,
    "c": 0.16148,
    "h": 304.2
  },
  "luminance": 0.03541
}

Semantic roles & 50–950 ramp

primary
#4E137C
secondary
#6EB239
accent
#F03888
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #4E137C

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

Preview Lab → · Contrast checker → · Palette generator →

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