#4E185E#4E185E

#4E185E is a dark, vivid purple. Relative luminance 0.031; OKLCH L 33.0% C 0.125 H 317.4°. Best body text is #FFFFFF at 12.99:1 contrast (WCAG AA passes).

Color values

HEX#4E185E
RGBrgb(78, 24, 94)
HSLhsl(286, 59%, 23%)
HSVhsv(286, 74%, 37%)
CMYKcmyk(17%, 74.5%, 0%, 63.1%)
CIE-LABlab(20.37, 36.51, -30.14)
CIE-LCHlch(20.37, 47.34, 320.45°)
OKLaboklab(32.95% 0.0922 -0.0846)
OKLCHoklch(32.95% 0.125 317.4)
XYZxyz(5.4886, 3.0814, 10.8932)
Luminance0.0308 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E185E #285E18
analogous
#2B185E #4E185E #5E184B
triadic
#4E185E #5E4E18 #185E4E
tetradic
#4E185E #5E2B18 #285E18 #184B5E
square
#4E185E #5E2B18 #285E18 #184B5E
split-complementary
#4E185E #4B5E18 #185E2B
monochromatic
#140618 #260C2D #4E185E #76248F #9F31C0

Accessibility & contrast

On white

12.99
#4E185E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#4E185E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E185E
12.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E185E#FFFFFF#000000##FFFFFF
##4E185E1.0012.991.6212.99
#FFFFFF12.991.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E60
Deuteranopia (green-blind)
#1A335C
Tritanopia (blue-blind)
#4D2639
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #4e185e;
/* rgb */ color: rgb(78, 24, 94);
/* oklch */ color: oklch(33.0% 0.125 317.4);
Tailwind
colors: {
  custom: {
    50: '#825a8c',
    500: '#4e185e',
    950: '#000000',
  },
}
SCSS
$custom: #4e185e;
$custom-light: #825a8c;
$custom-dark: #000000;
JSON
{
  "hex": "#4e185e",
  "rgb": {
    "r": 78,
    "g": 24,
    "b": 94
  },
  "hsl": {
    "h": 286.286,
    "s": 59.322,
    "l": 23.137
  },
  "oklch": {
    "l": 0.3295,
    "c": 0.12515,
    "h": 317.4
  },
  "luminance": 0.03081
}

Semantic roles & 50–950 ramp

primary
#4E185E
secondary
#51943D
accent
#E34569
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #4E185E

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

Preview Lab → · Contrast checker → · Palette generator →

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