#4E155E#4E155E

#4E155E is a dark, vivid purple. Relative luminance 0.030; OKLCH L 32.6% C 0.129 H 317.8°. Best body text is #FFFFFF at 13.18:1 contrast (WCAG AA passes).

Color values

HEX#4E155E
RGBrgb(78, 21, 94)
HSLhsl(287, 63%, 23%)
HSVhsv(287, 78%, 37%)
CMYKcmyk(17%, 77.7%, 0%, 63.1%)
CIE-LABlab(19.90, 37.83, -30.89)
CIE-LCHlch(19.90, 48.84, 320.76°)
OKLaboklab(32.62% 0.0956 -0.0868)
OKLCHoklch(32.62% 0.129 317.8)
XYZxyz(5.4301, 2.9644, 10.8737)
Luminance0.0296 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E155E #255E15
analogous
#29155E #4E155E #5E154A
triadic
#4E155E #5E4E15 #155E4E
tetradic
#4E155E #5E2915 #255E15 #154A5E
square
#4E155E #5E2915 #255E15 #154A5E
split-complementary
#4E155E #4A5E15 #155E29
monochromatic
#150619 #240A2C #4E155E #782090 #A12BC2

Accessibility & contrast

On white

13.18
#4E155E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#4E155E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E155E
13.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E155E#FFFFFF#000000##FFFFFF
##4E155E1.0013.181.5913.18
#FFFFFF13.181.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D60
Deuteranopia (green-blind)
#18325C
Tritanopia (blue-blind)
#4D2438
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #4e155e;
/* rgb */ color: rgb(78, 21, 94);
/* oklch */ color: oklch(32.6% 0.129 317.8);
Tailwind
colors: {
  custom: {
    50: '#82598c',
    500: '#4e155e',
    950: '#000000',
  },
}
SCSS
$custom: #4e155e;
$custom-light: #82598c;
$custom-dark: #000000;
JSON
{
  "hex": "#4e155e",
  "rgb": {
    "r": 78,
    "g": 21,
    "b": 94
  },
  "hsl": {
    "h": 286.849,
    "s": 63.478,
    "l": 22.549
  },
  "oklch": {
    "l": 0.32618,
    "c": 0.12914,
    "h": 317.8
  },
  "luminance": 0.02964
}

Semantic roles & 50–950 ramp

primary
#4E155E
secondary
#4E9539
accent
#E74166
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #4E155E

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

Preview Lab → · Contrast checker → · Palette generator →

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