#4E175E#4E175E

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

Color values

HEX#4E175E
RGBrgb(78, 23, 94)
HSLhsl(286, 61%, 23%)
HSVhsv(286, 76%, 37%)
CMYKcmyk(17%, 75.5%, 0%, 63.1%)
CIE-LABlab(20.21, 36.96, -30.40)
CIE-LCHlch(20.21, 47.86, 320.56°)
OKLaboklab(32.84% 0.0934 -0.0854)
OKLCHoklch(32.84% 0.127 317.6)
XYZxyz(5.4684, 3.0409, 10.8864)
Luminance0.0304 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E175E #275E17
analogous
#2A175E #4E175E #5E174A
triadic
#4E175E #5E4E17 #175E4E
tetradic
#4E175E #5E2A17 #275E17 #174A5E
square
#4E175E #5E2A17 #275E17 #174A5E
split-complementary
#4E175E #4A5E17 #175E2A
monochromatic
#140619 #250B2D #4E175E #77238F #A02FC0

Accessibility & contrast

On white

13.06
#4E175E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#4E175E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E175E
13.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E175E#FFFFFF#000000##FFFFFF
##4E175E1.0013.061.6113.06
#FFFFFF13.061.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D60
Deuteranopia (green-blind)
#19325C
Tritanopia (blue-blind)
#4D2539
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #4e175e;
/* rgb */ color: rgb(78, 23, 94);
/* oklch */ color: oklch(32.8% 0.127 317.6);
Tailwind
colors: {
  custom: {
    50: '#825a8c',
    500: '#4e175e',
    950: '#000000',
  },
}
SCSS
$custom: #4e175e;
$custom-light: #825a8c;
$custom-dark: #000000;
JSON
{
  "hex": "#4e175e",
  "rgb": {
    "r": 78,
    "g": 23,
    "b": 94
  },
  "hsl": {
    "h": 286.479,
    "s": 60.684,
    "l": 22.941
  },
  "oklch": {
    "l": 0.32836,
    "c": 0.12652,
    "h": 317.6
  },
  "luminance": 0.03041
}

Semantic roles & 50–950 ramp

primary
#4E175E
secondary
#50953C
accent
#E44468
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #4E175E

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

Preview Lab → · Contrast checker → · Palette generator →

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