#4E117C#4E117C

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

Color values

HEX#4E117C
RGBrgb(78, 17, 124)
HSLhsl(274, 76%, 28%)
HSVhsv(274, 86%, 49%)
CMYKcmyk(37.1%, 86.3%, 0%, 51.4%)
CIE-LABlab(21.86, 46.20, -47.21)
CIE-LCHlch(21.86, 66.06, 314.38°)
OKLaboklab(34.76% 0.0922 -0.1347)
OKLCHoklch(34.76% 0.163 304.4)
XYZxyz(6.9796, 3.4759, 19.3681)
Luminance0.0348 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E117C #3F7C11
analogous
#19117C #4E117C #7C1174
triadic
#4E117C #7C4E11 #117C4E
tetradic
#4E117C #7C1911 #3F7C11 #11747C
square
#4E117C #7C1911 #3F7C11 #11747C
split-complementary
#4E117C #747C11 #117C19
monochromatic
#11041B #2C0A46 #4E117C #7018B2 #9126E1

Accessibility & contrast

On white

12.39
#4E117C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E117C
12.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E117C#FFFFFF#000000##FFFFFF
##4E117C1.0012.391.7012.39
#FFFFFF12.391.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.391.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4e117c;
/* rgb */ color: rgb(78, 17, 124);
/* oklch */ color: oklch(34.8% 0.163 304.4);
Tailwind
colors: {
  custom: {
    50: '#8559a3',
    500: '#4e117c',
    950: '#000000',
  },
}
SCSS
$custom: #4e117c;
$custom-light: #8559a3;
$custom-dark: #000000;
JSON
{
  "hex": "#4e117c",
  "rgb": {
    "r": 78,
    "g": 17,
    "b": 124
  },
  "hsl": {
    "h": 274.206,
    "s": 75.887,
    "l": 27.647
  },
  "oklch": {
    "l": 0.34764,
    "c": 0.16322,
    "h": 304.4
  },
  "luminance": 0.03476
}

Semantic roles & 50–950 ramp

primary
#4E117C
secondary
#6CB237
accent
#F23587
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #4E117C

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

Preview Lab → · Contrast checker → · Palette generator →

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