#4E2058#4E2058

#4E2058 is a dark, moderate purple. Relative luminance 0.034; OKLCH L 33.6% C 0.106 H 320.1°. Best body text is #FFFFFF at 12.56:1 contrast (WCAG AA passes).

Color values

HEX#4E2058
RGBrgb(78, 32, 88)
HSLhsl(289, 47%, 24%)
HSVhsv(289, 64%, 35%)
CMYKcmyk(11.4%, 63.6%, 0%, 65.5%)
CIE-LABlab(21.42, 31.14, -24.47)
CIE-LCHlch(21.42, 39.61, 321.84°)
OKLaboklab(33.59% 0.0816 -0.0681)
OKLCHoklch(33.59% 0.106 320.1)
XYZxyz(5.4196, 3.3575, 9.5932)
Luminance0.0336 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2058 #2A5820
analogous
#322058 #4E2058 #582046
triadic
#4E2058 #584E20 #20584E
tetradic
#4E2058 #583220 #2A5820 #204658
square
#4E2058 #583220 #2A5820 #204658
split-complementary
#4E2058 #465820 #205832
monochromatic
#140816 #26102B #4E2058 #763085 #9E41B2

Accessibility & contrast

On white

12.56
#4E2058 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#4E2058 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2058
12.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2058#FFFFFF#000000##FFFFFF
##4E20581.0012.561.6712.56
#FFFFFF12.561.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#14305A
Deuteranopia (green-blind)
#253557
Tritanopia (blue-blind)
#4E2938
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #4e2058;
/* rgb */ color: rgb(78, 32, 88);
/* oklch */ color: oklch(33.6% 0.106 320.1);
Tailwind
colors: {
  custom: {
    50: '#815e87',
    500: '#4e2058',
    950: '#000000',
  },
}
SCSS
$custom: #4e2058;
$custom-light: #815e87;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2058",
  "rgb": {
    "r": 78,
    "g": 32,
    "b": 88
  },
  "hsl": {
    "h": 289.286,
    "s": 46.667,
    "l": 23.529
  },
  "oklch": {
    "l": 0.33585,
    "c": 0.10633,
    "h": 320.1
  },
  "luminance": 0.03357
}

Semantic roles & 50–950 ramp

primary
#4E2058
secondary
#548C47
accent
#D65169
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0A040B
muted
#7C797C

Preview Lab

Preview with #4E2058

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

Preview Lab → · Contrast checker → · Palette generator →

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