#4E1280#4E1280

#4E1280 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.2% C 0.166 H 302.8°. Best body text is #FFFFFF at 12.19:1 contrast (WCAG AA passes).

Color values

HEX#4E1280
RGBrgb(78, 18, 128)
HSLhsl(273, 75%, 29%)
HSVhsv(273, 86%, 50%)
CMYKcmyk(39.1%, 85.9%, 0%, 49.8%)
CIE-LABlab(22.34, 46.82, -48.96)
CIE-LCHlch(22.34, 67.74, 313.72°)
OKLaboklab(35.21% 0.0901 -0.1398)
OKLCHoklch(35.21% 0.166 302.8)
XYZxyz(7.2535, 3.6108, 20.7327)
Luminance0.0361 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1280 #448012
analogous
#171280 #4E1280 #80127B
triadic
#4E1280 #804E12 #12804E
tetradic
#4E1280 #801712 #448012 #127B80
square
#4E1280 #801712 #448012 #127B80
split-complementary
#4E1280 #7B8012 #128017
monochromatic
#10041B #2D0A4A #4E1280 #6F1AB6 #8E2BE1

Accessibility & contrast

On white

12.19
#4E1280 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#4E1280 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1280
12.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1280#FFFFFF#000000##FFFFFF
##4E12801.0012.191.7212.19
#FFFFFF12.191.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003483
Deuteranopia (green-blind)
#00357E
Tritanopia (blue-blind)
#43324B
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4e1280;
/* rgb */ color: rgb(78, 18, 128);
/* oklch */ color: oklch(35.2% 0.166 302.8);
Tailwind
colors: {
  custom: {
    50: '#855aa6',
    500: '#4e1280',
    950: '#000000',
  },
}
SCSS
$custom: #4e1280;
$custom-light: #855aa6;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1280",
  "rgb": {
    "r": 78,
    "g": 18,
    "b": 128
  },
  "hsl": {
    "h": 272.727,
    "s": 75.342,
    "l": 28.627
  },
  "oklch": {
    "l": 0.35213,
    "c": 0.16636,
    "h": 302.8
  },
  "luminance": 0.03611
}

Semantic roles & 50–950 ramp

primary
#4E1280
secondary
#71B638
accent
#F2368B
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #4E1280

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

Preview Lab → · Contrast checker → · Palette generator →

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