#4E1858#4E1858

#4E1858 is a dark, moderate purple. Relative luminance 0.030; OKLCH L 32.5% C 0.119 H 321.0°. Best body text is #FFFFFF at 13.16:1 contrast (WCAG AA passes).

Color values

HEX#4E1858
RGBrgb(78, 24, 88)
HSLhsl(291, 57%, 22%)
HSVhsv(291, 73%, 35%)
CMYKcmyk(11.4%, 72.7%, 0%, 65.5%)
CIE-LABlab(19.95, 35.20, -26.81)
CIE-LCHlch(19.95, 44.24, 322.71°)
OKLaboklab(32.52% 0.0925 -0.0749)
OKLCHoklch(32.52% 0.119 321)
XYZxyz(5.2298, 2.9778, 9.5299)
Luminance0.0298 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1858 #225818
analogous
#2E1858 #4E1858 #581842
triadic
#4E1858 #584E18 #18584E
tetradic
#4E1858 #582E18 #225818 #184258
square
#4E1858 #582E18 #225818 #184258
split-complementary
#4E1858 #425818 #18582E
monochromatic
#150718 #230B28 #4E1858 #792588 #A332B8

Accessibility & contrast

On white

13.16
#4E1858 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#4E1858 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1858
13.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1858#FFFFFF#000000##FFFFFF
##4E18581.0013.161.6013.16
#FFFFFF13.161.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#042C5A
Deuteranopia (green-blind)
#1F3256
Tritanopia (blue-blind)
#4F2336
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #4e1858;
/* rgb */ color: rgb(78, 24, 88);
/* oklch */ color: oklch(32.5% 0.119 321.0);
Tailwind
colors: {
  custom: {
    50: '#825a87',
    500: '#4e1858',
    950: '#000000',
  },
}
SCSS
$custom: #4e1858;
$custom-light: #825a87;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1858",
  "rgb": {
    "r": 78,
    "g": 24,
    "b": 88
  },
  "hsl": {
    "h": 290.625,
    "s": 57.143,
    "l": 21.961
  },
  "oklch": {
    "l": 0.32522,
    "c": 0.11902,
    "h": 321
  },
  "luminance": 0.02978
}

Semantic roles & 50–950 ramp

primary
#4E1858
secondary
#4A8F3D
accent
#E0475F
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B040B
muted
#7C797C

Preview Lab

Preview with #4E1858

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

Preview Lab → · Contrast checker → · Palette generator →

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