#4E1268#4E1268

#4E1268 is a dark, vivid purple. Relative luminance 0.031; OKLCH L 33.1% C 0.143 H 312.9°. Best body text is #FFFFFF at 13.04:1 contrast (WCAG AA passes).

Color values

HEX#4E1268
RGBrgb(78, 18, 104)
HSLhsl(282, 70%, 24%)
HSVhsv(282, 83%, 41%)
CMYKcmyk(25%, 82.7%, 0%, 59.2%)
CIE-LABlab(20.25, 41.23, -36.92)
CIE-LCHlch(20.25, 55.34, 318.16°)
OKLaboklab(33.11% 0.097 -0.1045)
OKLCHoklch(33.11% 0.143 312.9)
XYZxyz(5.8564, 3.0520, 13.3746)
Luminance0.0305 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1268 #2C6812
analogous
#231268 #4E1268 #681257
triadic
#4E1268 #684E12 #12684E
tetradic
#4E1268 #682312 #2C6812 #125768
square
#4E1268 #682312 #2C6812 #125768
split-complementary
#4E1268 #576812 #126823
monochromatic
#14051A #270934 #4E1268 #751B9C #9C24D0

Accessibility & contrast

On white

13.04
#4E1268 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E1268
13.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1268#FFFFFF#000000##FFFFFF
##4E12681.0013.041.6113.04
#FFFFFF13.041.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E6A
Deuteranopia (green-blind)
#053266
Tritanopia (blue-blind)
#4B273D
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #4e1268;
/* rgb */ color: rgb(78, 18, 104);
/* oklch */ color: oklch(33.1% 0.143 312.9);
Tailwind
colors: {
  custom: {
    50: '#835894',
    500: '#4e1268',
    950: '#000000',
  },
}
SCSS
$custom: #4e1268;
$custom-light: #835894;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1268",
  "rgb": {
    "r": 78,
    "g": 18,
    "b": 104
  },
  "hsl": {
    "h": 281.86,
    "s": 70.492,
    "l": 23.922
  },
  "oklch": {
    "l": 0.33107,
    "c": 0.14255,
    "h": 312.9
  },
  "luminance": 0.03052
}

Semantic roles & 50–950 ramp

primary
#4E1268
secondary
#56A036
accent
#ED3B71
background
#F8F5F9
surface
#EFE9F1
border
#CAC5CB
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #4E1268

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

Preview Lab → · Contrast checker → · Palette generator →

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