#4E175D#4E175D

#4E175D is a dark, vivid purple. Relative luminance 0.030; OKLCH L 32.8% C 0.126 H 318.1°. Best body text is #FFFFFF at 13.09:1 contrast (WCAG AA passes).

Color values

HEX#4E175D
RGBrgb(78, 23, 93)
HSLhsl(287, 60%, 23%)
HSVhsv(287, 75%, 36%)
CMYKcmyk(16.1%, 75.3%, 0%, 63.5%)
CIE-LABlab(20.14, 36.74, -29.85)
CIE-LCHlch(20.14, 47.34, 320.91°)
OKLaboklab(32.76% 0.0935 -0.0838)
OKLCHoklch(32.76% 0.126 318.1)
XYZxyz(5.4238, 3.0230, 10.6516)
Luminance0.0302 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E175D #265D17
analogous
#2B175D #4E175D #5D1749
triadic
#4E175D #5D4E17 #175D4E
tetradic
#4E175D #5D2B17 #265D17 #17495D
square
#4E175D #5D2B17 #265D17 #17495D
split-complementary
#4E175D #495D17 #175D2B
monochromatic
#150619 #250B2C #4E175D #77238E #A02FBF

Accessibility & contrast

On white

13.09
#4E175D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E175D
13.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E175D#FFFFFF#000000##FFFFFF
##4E175D1.0013.091.6013.09
#FFFFFF13.091.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D5F
Deuteranopia (green-blind)
#1A325B
Tritanopia (blue-blind)
#4E2538
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #4e175d;
/* rgb */ color: rgb(78, 23, 93);
/* oklch */ color: oklch(32.8% 0.126 318.1);
Tailwind
colors: {
  custom: {
    50: '#825a8b',
    500: '#4e175d',
    950: '#000000',
  },
}
SCSS
$custom: #4e175d;
$custom-light: #825a8b;
$custom-dark: #000000;
JSON
{
  "hex": "#4e175d",
  "rgb": {
    "r": 78,
    "g": 23,
    "b": 93
  },
  "hsl": {
    "h": 287.143,
    "s": 60.345,
    "l": 22.745
  },
  "oklch": {
    "l": 0.32762,
    "c": 0.1255,
    "h": 318.1
  },
  "luminance": 0.03023
}

Semantic roles & 50–950 ramp

primary
#4E175D
secondary
#4F943C
accent
#E34466
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #4E175D

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

Preview Lab → · Contrast checker → · Palette generator →

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