#4E175B#4E175B

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

Color values

HEX#4E175B
RGBrgb(78, 23, 91)
HSLhsl(289, 60%, 22%)
HSVhsv(289, 75%, 36%)
CMYKcmyk(14.3%, 74.7%, 0%, 64.3%)
CIE-LABlab(20.00, 36.30, -28.74)
CIE-LCHlch(20.00, 46.30, 321.63°)
OKLaboklab(32.62% 0.0936 -0.0805)
OKLCHoklch(32.62% 0.123 319.3)
XYZxyz(5.3364, 2.9881, 10.1912)
Luminance0.0299 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E175B #245B17
analogous
#2C175B #4E175B #5B1746
triadic
#4E175B #5B4E17 #175B4E
tetradic
#4E175B #5B2C17 #245B17 #17465B
square
#4E175B #5B2C17 #245B17 #17465B
split-complementary
#4E175B #465B17 #175B2C
monochromatic
#150618 #240B2A #4E175B #78238C #A230BD

Accessibility & contrast

On white

13.14
#4E175B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#4E175B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E175B
13.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E175B#FFFFFF#000000##FFFFFF
##4E175B1.0013.141.6013.14
#FFFFFF13.141.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D5D
Deuteranopia (green-blind)
#1C3259
Tritanopia (blue-blind)
#4E2437
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #4e175b;
/* rgb */ color: rgb(78, 23, 91);
/* oklch */ color: oklch(32.6% 0.123 319.3);
Tailwind
colors: {
  custom: {
    50: '#825a8a',
    500: '#4e175b',
    950: '#000000',
  },
}
SCSS
$custom: #4e175b;
$custom-light: #825a8a;
$custom-dark: #000000;
JSON
{
  "hex": "#4e175b",
  "rgb": {
    "r": 78,
    "g": 23,
    "b": 91
  },
  "hsl": {
    "h": 288.529,
    "s": 59.649,
    "l": 22.353
  },
  "oklch": {
    "l": 0.32618,
    "c": 0.12347,
    "h": 319.3
  },
  "luminance": 0.02988
}

Semantic roles & 50–950 ramp

primary
#4E175B
secondary
#4C923C
accent
#E34563
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #4E175B

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

Preview Lab → · Contrast checker → · Palette generator →

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