#4E1C80#4E1C80

#4E1C80 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.2% C 0.157 H 301.6°. Best body text is #FFFFFF at 11.66:1 contrast (WCAG AA passes).

Color values

HEX#4E1C80
RGBrgb(78, 28, 128)
HSLhsl(270, 64%, 31%)
HSVhsv(270, 78%, 50%)
CMYKcmyk(39.1%, 78.1%, 0%, 49.8%)
CIE-LABlab(23.70, 42.88, -46.73)
CIE-LCHlch(23.70, 63.43, 312.54°)
OKLaboklab(36.16% 0.0819 -0.1334)
OKLCHoklch(36.16% 0.157 301.6)
XYZxyz(7.4525, 4.0087, 20.7990)
Luminance0.0401 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1C80 #4E801C
analogous
#1C1C80 #4E1C80 #801C80
triadic
#4E1C80 #804E1C #1C804E
tetradic
#4E1C80 #801C1C #4E801C #1C8080
square
#4E1C80 #801C1C #4E801C #1C8080
split-complementary
#4E1C80 #80801C #1C801C
monochromatic
#11061C #2F114E #4E1C80 #6D27B2 #8B41D5

Accessibility & contrast

On white

11.66
#4E1C80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#4E1C80 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1C80
11.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1C80#FFFFFF#000000##FFFFFF
##4E1C801.0011.661.8011.66
#FFFFFF11.661.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003883
Deuteranopia (green-blind)
#00387E
Tritanopia (blue-blind)
#43364D
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #4e1c80;
/* rgb */ color: rgb(78, 28, 128);
/* oklch */ color: oklch(36.2% 0.157 301.6);
Tailwind
colors: {
  custom: {
    50: '#855ea6',
    500: '#4e1c80',
    950: '#000000',
  },
}
SCSS
$custom: #4e1c80;
$custom-light: #855ea6;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1c80",
  "rgb": {
    "r": 78,
    "g": 28,
    "b": 128
  },
  "hsl": {
    "h": 270,
    "s": 64.103,
    "l": 30.588
  },
  "oklch": {
    "l": 0.3616,
    "c": 0.15653,
    "h": 301.6
  },
  "luminance": 0.04009
}

Semantic roles & 50–950 ramp

primary
#4E1C80
secondary
#7CB344
accent
#E74194
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #4E1C80

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

Preview Lab → · Contrast checker → · Palette generator →

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