#4E2158#4E2158

#4E2158 is a dark, moderate purple. Relative luminance 0.034; OKLCH L 33.7% C 0.105 H 320.0°. Best body text is #FFFFFF at 12.48:1 contrast (WCAG AA passes).

Color values

HEX#4E2158
RGBrgb(78, 33, 88)
HSLhsl(289, 45%, 24%)
HSVhsv(289, 63%, 35%)
CMYKcmyk(11.4%, 62.5%, 0%, 65.5%)
CIE-LABlab(21.62, 30.60, -24.15)
CIE-LCHlch(21.62, 38.98, 321.71°)
OKLaboklab(33.73% 0.0802 -0.0672)
OKLCHoklch(33.73% 0.105 320)
XYZxyz(5.4470, 3.4122, 9.6023)
Luminance0.0341 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2158 #2B5821
analogous
#322158 #4E2158 #582146
triadic
#4E2158 #584E21 #21584E
tetradic
#4E2158 #583221 #2B5821 #214658
square
#4E2158 #583221 #2B5821 #214658
split-complementary
#4E2158 #465821 #215832
monochromatic
#140816 #27102B #4E2158 #753285 #9D42B1

Accessibility & contrast

On white

12.48
#4E2158 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#4E2158 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2158
12.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2158#FFFFFF#000000##FFFFFF
##4E21581.0012.481.6812.48
#FFFFFF12.481.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#15315A
Deuteranopia (green-blind)
#253557
Tritanopia (blue-blind)
#4E2939
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #4e2158;
/* rgb */ color: rgb(78, 33, 88);
/* oklch */ color: oklch(33.7% 0.105 320.0);
Tailwind
colors: {
  custom: {
    50: '#815f87',
    500: '#4e2158',
    950: '#000000',
  },
}
SCSS
$custom: #4e2158;
$custom-light: #815f87;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2158",
  "rgb": {
    "r": 78,
    "g": 33,
    "b": 88
  },
  "hsl": {
    "h": 289.091,
    "s": 45.455,
    "l": 23.725
  },
  "oklch": {
    "l": 0.33732,
    "c": 0.10461,
    "h": 320
  },
  "luminance": 0.03412
}

Semantic roles & 50–950 ramp

primary
#4E2158
secondary
#558C49
accent
#D5536A
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0A050B
muted
#7C797C

Preview Lab

Preview with #4E2158

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

Preview Lab → · Contrast checker → · Palette generator →

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