#4E1958#4E1958

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

Color values

HEX#4E1958
RGBrgb(78, 25, 88)
HSLhsl(290, 56%, 22%)
HSVhsv(290, 72%, 35%)
CMYKcmyk(11.4%, 71.6%, 0%, 65.5%)
CIE-LABlab(20.12, 34.73, -26.54)
CIE-LCHlch(20.12, 43.71, 322.61°)
OKLaboklab(32.64% 0.0912 -0.0741)
OKLCHoklch(32.64% 0.118 320.9)
XYZxyz(5.2508, 3.0198, 9.5369)
Luminance0.0302 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1958 #235819
analogous
#2F1958 #4E1958 #581943
triadic
#4E1958 #584E19 #19584E
tetradic
#4E1958 #582F19 #235819 #194358
square
#4E1958 #582F19 #235819 #194358
split-complementary
#4E1958 #435819 #19582F
monochromatic
#150718 #240B28 #4E1958 #782788 #A234B7

Accessibility & contrast

On white

13.09
#4E1958 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E1958
13.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1958#FFFFFF#000000##FFFFFF
##4E19581.0013.091.6013.09
#FFFFFF13.091.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#062D5A
Deuteranopia (green-blind)
#203356
Tritanopia (blue-blind)
#4F2436
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #4e1958;
/* rgb */ color: rgb(78, 25, 88);
/* oklch */ color: oklch(32.6% 0.118 320.9);
Tailwind
colors: {
  custom: {
    50: '#825b87',
    500: '#4e1958',
    950: '#000000',
  },
}
SCSS
$custom: #4e1958;
$custom-light: #825b87;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1958",
  "rgb": {
    "r": 78,
    "g": 25,
    "b": 88
  },
  "hsl": {
    "h": 290.476,
    "s": 55.752,
    "l": 22.157
  },
  "oklch": {
    "l": 0.32643,
    "c": 0.11754,
    "h": 320.9
  },
  "luminance": 0.0302
}

Semantic roles & 50–950 ramp

primary
#4E1958
secondary
#4B8E3E
accent
#DF4961
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B040B
muted
#7C797C

Preview Lab

Preview with #4E1958

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

Preview Lab → · Contrast checker → · Palette generator →

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