#4E2958#4E2958

#4E2958 is a dark, moderate purple. Relative luminance 0.039; OKLCH L 35.0% C 0.090 H 318.8°. Best body text is #FFFFFF at 11.78:1 contrast (WCAG AA passes).

Color values

HEX#4E2958
RGBrgb(78, 41, 88)
HSLhsl(287, 36%, 25%)
HSVhsv(287, 53%, 35%)
CMYKcmyk(11.4%, 53.4%, 0%, 65.5%)
CIE-LABlab(23.37, 25.95, -21.39)
CIE-LCHlch(23.37, 33.64, 320.50°)
OKLaboklab(35.02% 0.0677 -0.0593)
OKLCHoklch(35.02% 0.09 318.8)
XYZxyz(5.6960, 3.9104, 9.6854)
Luminance0.0391 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2958 #335829
analogous
#362958 #4E2958 #58294A
triadic
#4E2958 #584E29 #29584E
tetradic
#4E2958 #583629 #335829 #294A58
square
#4E2958 #583629 #335829 #294A58
split-complementary
#4E2958 #4A5829 #295836
monochromatic
#130A15 #29162E #4E2958 #733C82 #9850AB

Accessibility & contrast

On white

11.78
#4E2958 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#4E2958 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2958
11.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2958#FFFFFF#000000##FFFFFF
##4E29581.0011.781.7811.78
#FFFFFF11.781.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#21355A
Deuteranopia (green-blind)
#2C3957
Tritanopia (blue-blind)
#4E303C
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #4e2958;
/* rgb */ color: rgb(78, 41, 88);
/* oklch */ color: oklch(35.0% 0.090 318.8);
Tailwind
colors: {
  custom: {
    50: '#816487',
    500: '#4e2958',
    950: '#000000',
  },
}
SCSS
$custom: #4e2958;
$custom-light: #816487;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2958",
  "rgb": {
    "r": 78,
    "g": 41,
    "b": 88
  },
  "hsl": {
    "h": 287.234,
    "s": 36.434,
    "l": 25.294
  },
  "oklch": {
    "l": 0.35019,
    "c": 0.08999,
    "h": 318.8
  },
  "luminance": 0.0391
}

Semantic roles & 50–950 ramp

primary
#4E2958
secondary
#5E8B52
accent
#CC5B73
background
#F8F6F8
surface
#EFEBEF
border
#CAC6CA
text
#0A050B
muted
#7C7A7C

Preview Lab

Preview with #4E2958

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

Preview Lab → · Contrast checker → · Palette generator →

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