#4E1957#4E1957

#4E1957 is a dark, moderate purple. Relative luminance 0.030; OKLCH L 32.6% C 0.117 H 321.5°. Best body text is #FFFFFF at 13.12:1 contrast (WCAG AA passes).

Color values

HEX#4E1957
RGBrgb(78, 25, 87)
HSLhsl(291, 55%, 22%)
HSVhsv(291, 71%, 34%)
CMYKcmyk(10.3%, 71.3%, 0%, 65.9%)
CIE-LABlab(20.06, 34.51, -25.97)
CIE-LCHlch(20.06, 43.19, 323.03°)
OKLaboklab(32.57% 0.0913 -0.0725)
OKLCHoklch(32.57% 0.117 321.5)
XYZxyz(5.2096, 3.0034, 9.3203)
Luminance0.0300 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1957 #225719
analogous
#2F1957 #4E1957 #571941
triadic
#4E1957 #574E19 #19574E
tetradic
#4E1957 #572F19 #225719 #194157
square
#4E1957 #572F19 #225719 #194157
split-complementary
#4E1957 #415719 #19572F
monochromatic
#150718 #230B27 #4E1957 #792787 #A334B6

Accessibility & contrast

On white

13.12
#4E1957 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E1957
13.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1957#FFFFFF#000000##FFFFFF
##4E19571.0013.121.6013.12
#FFFFFF13.121.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.121.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4e1957;
/* rgb */ color: rgb(78, 25, 87);
/* oklch */ color: oklch(32.6% 0.117 321.5);
Tailwind
colors: {
  custom: {
    50: '#825a87',
    500: '#4e1957',
    950: '#000000',
  },
}
SCSS
$custom: #4e1957;
$custom-light: #825a87;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1957",
  "rgb": {
    "r": 78,
    "g": 25,
    "b": 87
  },
  "hsl": {
    "h": 291.29,
    "s": 55.357,
    "l": 21.961
  },
  "oklch": {
    "l": 0.32575,
    "c": 0.11652,
    "h": 321.5
  },
  "luminance": 0.03003
}

Semantic roles & 50–950 ramp

primary
#4E1957
secondary
#4A8D3E
accent
#DF495F
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B040B
muted
#7C797C

Preview Lab

Preview with #4E1957

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

Preview Lab → · Contrast checker → · Palette generator →

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