#4E1281#4E1281

#4E1281 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.3% C 0.167 H 302.4°. Best body text is #FFFFFF at 12.16:1 contrast (WCAG AA passes).

Color values

HEX#4E1281
RGBrgb(78, 18, 129)
HSLhsl(272, 76%, 29%)
HSVhsv(272, 86%, 51%)
CMYKcmyk(39.5%, 86%, 0%, 49.4%)
CIE-LABlab(22.43, 47.06, -49.44)
CIE-LCHlch(22.43, 68.26, 313.59°)
OKLaboklab(35.31% 0.0898 -0.1412)
OKLCHoklch(35.31% 0.167 302.4)
XYZxyz(7.3197, 3.6373, 21.0811)
Luminance0.0364 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1281 #458112
analogous
#161281 #4E1281 #81127D
triadic
#4E1281 #814E12 #12814E
tetradic
#4E1281 #811612 #458112 #127D81
square
#4E1281 #811612 #458112 #127D81
split-complementary
#4E1281 #7D8112 #128116
monochromatic
#10041B #2E0B4B #4E1281 #6E19B7 #8E2CE2

Accessibility & contrast

On white

12.16
#4E1281 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#4E1281 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1281
12.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1281#FFFFFF#000000##FFFFFF
##4E12811.0012.161.7312.16
#FFFFFF12.161.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003584
Deuteranopia (green-blind)
#00357F
Tritanopia (blue-blind)
#43324B
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #4e1281;
/* rgb */ color: rgb(78, 18, 129);
/* oklch */ color: oklch(35.3% 0.167 302.4);
Tailwind
colors: {
  custom: {
    50: '#865aa7',
    500: '#4e1281',
    950: '#000000',
  },
}
SCSS
$custom: #4e1281;
$custom-light: #865aa7;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1281",
  "rgb": {
    "r": 78,
    "g": 18,
    "b": 129
  },
  "hsl": {
    "h": 272.432,
    "s": 75.51,
    "l": 28.824
  },
  "oklch": {
    "l": 0.35306,
    "c": 0.16735,
    "h": 302.4
  },
  "luminance": 0.03637
}

Semantic roles & 50–950 ramp

primary
#4E1281
secondary
#72B738
accent
#F2368C
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #4E1281

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

Preview Lab → · Contrast checker → · Palette generator →

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