#4E2558#4E2558

#4E2558 is a dark, moderate purple. Relative luminance 0.036; OKLCH L 34.4% C 0.097 H 319.5°. Best body text is #FFFFFF at 12.14:1 contrast (WCAG AA passes).

Color values

HEX#4E2558
RGBrgb(78, 37, 88)
HSLhsl(288, 41%, 25%)
HSVhsv(288, 58%, 35%)
CMYKcmyk(11.4%, 58%, 0%, 65.5%)
CIE-LABlab(22.47, 28.33, -22.82)
CIE-LCHlch(22.47, 36.37, 321.15°)
OKLaboklab(34.35% 0.0741 -0.0634)
OKLCHoklch(34.35% 0.097 319.5)
XYZxyz(5.5647, 3.6476, 9.6416)
Luminance0.0365 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2558 #2F5825
analogous
#352558 #4E2558 #582549
triadic
#4E2558 #584E25 #25584E
tetradic
#4E2558 #583525 #2F5825 #254958
square
#4E2558 #583525 #2F5825 #254958
split-complementary
#4E2558 #495825 #255835
monochromatic
#130916 #28132D #4E2558 #743783 #9A49AE

Accessibility & contrast

On white

12.14
#4E2558 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#4E2558 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2558
12.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2558#FFFFFF#000000##FFFFFF
##4E25581.0012.141.7312.14
#FFFFFF12.141.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B335A
Deuteranopia (green-blind)
#283757
Tritanopia (blue-blind)
#4E2C3A
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #4e2558;
/* rgb */ color: rgb(78, 37, 88);
/* oklch */ color: oklch(34.4% 0.097 319.5);
Tailwind
colors: {
  custom: {
    50: '#816287',
    500: '#4e2558',
    950: '#000000',
  },
}
SCSS
$custom: #4e2558;
$custom-light: #816287;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2558",
  "rgb": {
    "r": 78,
    "g": 37,
    "b": 88
  },
  "hsl": {
    "h": 288.235,
    "s": 40.8,
    "l": 24.51
  },
  "oklch": {
    "l": 0.34352,
    "c": 0.09747,
    "h": 319.5
  },
  "luminance": 0.03647
}

Semantic roles & 50–950 ramp

primary
#4E2558
secondary
#5A8B4D
accent
#D1576F
background
#F8F5F8
surface
#EFEAEF
border
#CAC6CA
text
#0A050B
muted
#7C797C

Preview Lab

Preview with #4E2558

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

Preview Lab → · Contrast checker → · Palette generator →

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