#4E1258#4E1258

#4E1258 is a dark, vivid purple. Relative luminance 0.028; OKLCH L 31.9% C 0.127 H 321.5°. Best body text is #FFFFFF at 13.54:1 contrast (WCAG AA passes).

Color values

HEX#4E1258
RGBrgb(78, 18, 88)
HSLhsl(291, 66%, 21%)
HSVhsv(291, 80%, 35%)
CMYKcmyk(11.4%, 79.5%, 0%, 65.5%)
CIE-LABlab(19.04, 37.77, -28.26)
CIE-LCHlch(19.04, 47.18, 323.20°)
OKLaboklab(31.87% 0.0994 -0.0791)
OKLCHoklch(31.87% 0.127 321.5)
XYZxyz(5.1194, 2.7572, 9.4932)
Luminance0.0276 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1258 #1C5812
analogous
#2B1258 #4E1258 #58123F
triadic
#4E1258 #584E12 #12584E
tetradic
#4E1258 #582B12 #1C5812 #123F58
square
#4E1258 #582B12 #1C5812 #123F58
split-complementary
#4E1258 #3F5812 #12582B
monochromatic
#170519 #210825 #4E1258 #7B1C8B #A827BE

Accessibility & contrast

On white

13.54
#4E1258 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#4E1258 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1258
13.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1258#FFFFFF#000000##FFFFFF
##4E12581.0013.541.5513.54
#FFFFFF13.541.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A5A
Deuteranopia (green-blind)
#1B3056
Tritanopia (blue-blind)
#4F1F34
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #4e1258;
/* rgb */ color: rgb(78, 18, 88);
/* oklch */ color: oklch(31.9% 0.127 321.5);
Tailwind
colors: {
  custom: {
    50: '#825787',
    500: '#4e1258',
    950: '#000000',
  },
}
SCSS
$custom: #4e1258;
$custom-light: #825787;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1258",
  "rgb": {
    "r": 78,
    "g": 18,
    "b": 88
  },
  "hsl": {
    "h": 291.429,
    "s": 66.038,
    "l": 20.784
  },
  "oklch": {
    "l": 0.31871,
    "c": 0.12705,
    "h": 321.5
  },
  "luminance": 0.02757
}

Semantic roles & 50–950 ramp

primary
#4E1258
secondary
#429135
accent
#E93F57
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B030B
muted
#7C787C

Preview Lab

Preview with #4E1258

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

Preview Lab → · Contrast checker → · Palette generator →

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