#4E185F#4E185F

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

Color values

HEX#4E185F
RGBrgb(78, 24, 95)
HSLhsl(286, 60%, 23%)
HSVhsv(286, 75%, 37%)
CMYKcmyk(17.9%, 74.7%, 0%, 62.7%)
CIE-LABlab(20.44, 36.73, -30.69)
CIE-LCHlch(20.44, 47.87, 320.12°)
OKLaboklab(33.02% 0.0921 -0.0862)
OKLCHoklch(33.02% 0.126 316.9)
XYZxyz(5.5338, 3.0994, 11.1310)
Luminance0.0310 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E185F #295F18
analogous
#2A185F #4E185F #5F184C
triadic
#4E185F #5F4E18 #185F4E
tetradic
#4E185F #5F2A18 #295F18 #184C5F
square
#4E185F #5F2A18 #295F18 #184C5F
split-complementary
#4E185F #4C5F18 #185F2A
monochromatic
#140618 #260C2E #4E185F #762490 #9E31C1

Accessibility & contrast

On white

12.96
#4E185F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E185F
12.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E185F#FFFFFF#000000##FFFFFF
##4E185F1.0012.961.6212.96
#FFFFFF12.961.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E61
Deuteranopia (green-blind)
#19335D
Tritanopia (blue-blind)
#4D2639
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #4e185f;
/* rgb */ color: rgb(78, 24, 95);
/* oklch */ color: oklch(33.0% 0.126 316.9);
Tailwind
colors: {
  custom: {
    50: '#825a8d',
    500: '#4e185f',
    950: '#000000',
  },
}
SCSS
$custom: #4e185f;
$custom-light: #825a8d;
$custom-dark: #000000;
JSON
{
  "hex": "#4e185f",
  "rgb": {
    "r": 78,
    "g": 24,
    "b": 95
  },
  "hsl": {
    "h": 285.634,
    "s": 59.664,
    "l": 23.333
  },
  "oklch": {
    "l": 0.33023,
    "c": 0.12618,
    "h": 316.9
  },
  "luminance": 0.03099
}

Semantic roles & 50–950 ramp

primary
#4E185F
secondary
#52953D
accent
#E3456B
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #4E185F

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

Preview Lab → · Contrast checker → · Palette generator →

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