#4E1857#4E1857

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

Color values

HEX#4E1857
RGBrgb(78, 24, 87)
HSLhsl(291, 57%, 22%)
HSVhsv(291, 72%, 34%)
CMYKcmyk(10.3%, 72.4%, 0%, 65.9%)
CIE-LABlab(19.89, 34.98, -26.24)
CIE-LCHlch(19.89, 43.73, 323.12°)
OKLaboklab(32.45% 0.0925 -0.0732)
OKLCHoklch(32.45% 0.118 321.6)
XYZxyz(5.1886, 2.9614, 9.3133)
Luminance0.0296 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1857 #215718
analogous
#2F1857 #4E1857 #571841
triadic
#4E1857 #574E18 #18574E
tetradic
#4E1857 #572F18 #215718 #184157
square
#4E1857 #572F18 #215718 #184157
split-complementary
#4E1857 #415718 #18572F
monochromatic
#160718 #230B27 #4E1857 #792587 #A432B7

Accessibility & contrast

On white

13.19
#4E1857 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E1857
13.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1857#FFFFFF#000000##FFFFFF
##4E18571.0013.191.5913.19
#FFFFFF13.191.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#062C59
Deuteranopia (green-blind)
#203255
Tritanopia (blue-blind)
#4F2335
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #4e1857;
/* rgb */ color: rgb(78, 24, 87);
/* oklch */ color: oklch(32.5% 0.118 321.6);
Tailwind
colors: {
  custom: {
    50: '#825a87',
    500: '#4e1857',
    950: '#000000',
  },
}
SCSS
$custom: #4e1857;
$custom-light: #825a87;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1857",
  "rgb": {
    "r": 78,
    "g": 24,
    "b": 87
  },
  "hsl": {
    "h": 291.429,
    "s": 56.757,
    "l": 21.765
  },
  "oklch": {
    "l": 0.32453,
    "c": 0.118,
    "h": 321.6
  },
  "luminance": 0.02961
}

Semantic roles & 50–950 ramp

primary
#4E1857
secondary
#498E3D
accent
#E0485E
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B040B
muted
#7C797C

Preview Lab

Preview with #4E1857

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

Preview Lab → · Contrast checker → · Palette generator →

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