#4E108C#4E108C

#4E108C is a dark, vivid violet. Relative luminance 0.039; OKLCH L 36.2% C 0.180 H 298.9°. Best body text is #FFFFFF at 11.82:1 contrast (WCAG AA passes).

Color values

HEX#4E108C
RGBrgb(78, 16, 140)
HSLhsl(270, 79%, 31%)
HSVhsv(270, 89%, 55%)
CMYKcmyk(44.3%, 88.6%, 0%, 45.1%)
CIE-LABlab(23.28, 50.34, -54.95)
CIE-LCHlch(23.28, 74.53, 312.49°)
OKLaboklab(36.21% 0.0869 -0.1574)
OKLCHoklch(36.21% 0.18 298.9)
XYZxyz(8.0596, 3.8836, 25.1308)
Luminance0.0388 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E108C #4E8C10
analogous
#10108C #4E108C #8C108C
triadic
#4E108C #8C4E10 #108C4E
tetradic
#4E108C #8C1010 #4E8C10 #108C8C
square
#4E108C #8C1010 #4E8C10 #108C8C
split-complementary
#4E108C #8C8C10 #108C10
monochromatic
#11031E #2F0A55 #4E108C #6D16C3 #8B2FE7

Accessibility & contrast

On white

11.82
#4E108C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#4E108C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E108C
11.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E108C#FFFFFF#000000##FFFFFF
##4E108C1.0011.821.7811.82
#FFFFFF11.821.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378F
Deuteranopia (green-blind)
#00368A
Tritanopia (blue-blind)
#3E3752
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #4e108c;
/* rgb */ color: rgb(78, 16, 140);
/* oklch */ color: oklch(36.2% 0.180 298.9);
Tailwind
colors: {
  custom: {
    50: '#875aaf',
    500: '#4e108c',
    950: '#000000',
  },
}
SCSS
$custom: #4e108c;
$custom-light: #875aaf;
$custom-dark: #000000;
JSON
{
  "hex": "#4e108c",
  "rgb": {
    "r": 78,
    "g": 16,
    "b": 140
  },
  "hsl": {
    "h": 270,
    "s": 79.487,
    "l": 30.588
  },
  "oklch": {
    "l": 0.36213,
    "c": 0.1798,
    "h": 298.9
  },
  "luminance": 0.03884
}

Semantic roles & 50–950 ramp

primary
#4E108C
secondary
#7CC137
accent
#F63294
background
#F8F5FA
surface
#F0E9F5
border
#CBC5CF
text
#0C0410
muted
#7D797F

Preview Lab

Preview with #4E108C

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

Preview Lab → · Contrast checker → · Palette generator →

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