#4E1267#4E1267

#4E1267 is a dark, vivid purple. Relative luminance 0.030; OKLCH L 33.0% C 0.142 H 313.4°. Best body text is #FFFFFF at 13.07:1 contrast (WCAG AA passes).

Color values

HEX#4E1267
RGBrgb(78, 18, 103)
HSLhsl(282, 70%, 24%)
HSVhsv(282, 83%, 40%)
CMYKcmyk(24.3%, 82.5%, 0%, 59.6%)
CIE-LABlab(20.17, 41.01, -36.39)
CIE-LCHlch(20.17, 54.83, 318.41°)
OKLaboklab(33.03% 0.0972 -0.1029)
OKLCHoklch(33.03% 0.142 313.4)
XYZxyz(5.8059, 3.0318, 13.1087)
Luminance0.0303 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1267 #2B6712
analogous
#231267 #4E1267 #671255
triadic
#4E1267 #674E12 #12674E
tetradic
#4E1267 #672312 #2B6712 #125567
square
#4E1267 #672312 #2B6712 #125567
split-complementary
#4E1267 #556712 #126723
monochromatic
#14051A #270933 #4E1267 #751B9B #9D24CF

Accessibility & contrast

On white

13.07
#4E1267 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#4E1267 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1267
13.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1267#FFFFFF#000000##FFFFFF
##4E12671.0013.071.6113.07
#FFFFFF13.071.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E69
Deuteranopia (green-blind)
#073265
Tritanopia (blue-blind)
#4B263C
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #4e1267;
/* rgb */ color: rgb(78, 18, 103);
/* oklch */ color: oklch(33.0% 0.142 313.4);
Tailwind
colors: {
  custom: {
    50: '#835893',
    500: '#4e1267',
    950: '#000000',
  },
}
SCSS
$custom: #4e1267;
$custom-light: #835893;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1267",
  "rgb": {
    "r": 78,
    "g": 18,
    "b": 103
  },
  "hsl": {
    "h": 282.353,
    "s": 70.248,
    "l": 23.725
  },
  "oklch": {
    "l": 0.33026,
    "c": 0.14156,
    "h": 313.4
  },
  "luminance": 0.03032
}

Semantic roles & 50–950 ramp

primary
#4E1267
secondary
#559F36
accent
#ED3B6F
background
#F8F5F9
surface
#EFE9F1
border
#CAC5CB
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #4E1267

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

Preview Lab → · Contrast checker → · Palette generator →

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