#4E1758#4E1758

#4E1758 is a dark, vivid purple. Relative luminance 0.029; OKLCH L 32.4% C 0.120 H 321.1°. Best body text is #FFFFFF at 13.23:1 contrast (WCAG AA passes).

Color values

HEX#4E1758
RGBrgb(78, 23, 88)
HSLhsl(291, 59%, 22%)
HSVhsv(291, 74%, 35%)
CMYKcmyk(11.4%, 73.9%, 0%, 65.5%)
CIE-LABlab(19.79, 35.66, -27.07)
CIE-LCHlch(19.79, 44.77, 322.80°)
OKLaboklab(32.41% 0.0937 -0.0756)
OKLCHoklch(32.41% 0.12 321.1)
XYZxyz(5.2095, 2.9373, 9.5232)
Luminance0.0294 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1758 #215817
analogous
#2E1758 #4E1758 #581742
triadic
#4E1758 #584E17 #17584E
tetradic
#4E1758 #582E17 #215817 #174258
square
#4E1758 #582E17 #215817 #174258
split-complementary
#4E1758 #425817 #17582E
monochromatic
#160618 #230A27 #4E1758 #792489 #A430B9

Accessibility & contrast

On white

13.23
#4E1758 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#4E1758 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1758
13.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1758#FFFFFF#000000##FFFFFF
##4E17581.0013.231.5913.23
#FFFFFF13.231.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#022C5A
Deuteranopia (green-blind)
#1E3256
Tritanopia (blue-blind)
#4F2335
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #4e1758;
/* rgb */ color: rgb(78, 23, 88);
/* oklch */ color: oklch(32.4% 0.120 321.1);
Tailwind
colors: {
  custom: {
    50: '#825987',
    500: '#4e1758',
    950: '#000000',
  },
}
SCSS
$custom: #4e1758;
$custom-light: #825987;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1758",
  "rgb": {
    "r": 78,
    "g": 23,
    "b": 88
  },
  "hsl": {
    "h": 290.769,
    "s": 58.559,
    "l": 21.765
  },
  "oklch": {
    "l": 0.32405,
    "c": 0.12045,
    "h": 321.1
  },
  "luminance": 0.02937
}

Semantic roles & 50–950 ramp

primary
#4E1758
secondary
#498F3C
accent
#E2465E
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B040B
muted
#7C797C

Preview Lab

Preview with #4E1758

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

Preview Lab → · Contrast checker → · Palette generator →

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