#4E175F#4E175F

#4E175F is a dark, vivid purple. Relative luminance 0.031; OKLCH L 32.9% C 0.128 H 317.0°. Best body text is #FFFFFF at 13.03:1 contrast (WCAG AA passes).

Color values

HEX#4E175F
RGBrgb(78, 23, 95)
HSLhsl(286, 61%, 23%)
HSVhsv(286, 76%, 37%)
CMYKcmyk(17.9%, 75.8%, 0%, 62.7%)
CIE-LABlab(20.28, 37.18, -30.95)
CIE-LCHlch(20.28, 48.38, 320.23°)
OKLaboklab(32.91% 0.0933 -0.087)
OKLCHoklch(32.91% 0.128 317)
XYZxyz(5.5135, 3.0589, 11.1243)
Luminance0.0306 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E175F #285F17
analogous
#2A175F #4E175F #5F174C
triadic
#4E175F #5F4E17 #175F4E
tetradic
#4E175F #5F2A17 #285F17 #174C5F
square
#4E175F #5F2A17 #285F17 #174C5F
split-complementary
#4E175F #4C5F17 #175F2A
monochromatic
#140619 #260B2E #4E175F #762390 #9F2FC2

Accessibility & contrast

On white

13.03
#4E175F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E175F
13.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E175F#FFFFFF#000000##FFFFFF
##4E175F1.0013.031.6113.03
#FFFFFF13.031.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.031.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4e175f;
/* rgb */ color: rgb(78, 23, 95);
/* oklch */ color: oklch(32.9% 0.128 317.0);
Tailwind
colors: {
  custom: {
    50: '#825a8d',
    500: '#4e175f',
    950: '#000000',
  },
}
SCSS
$custom: #4e175f;
$custom-light: #825a8d;
$custom-dark: #000000;
JSON
{
  "hex": "#4e175f",
  "rgb": {
    "r": 78,
    "g": 23,
    "b": 95
  },
  "hsl": {
    "h": 285.833,
    "s": 61.017,
    "l": 23.137
  },
  "oklch": {
    "l": 0.3291,
    "c": 0.12753,
    "h": 317
  },
  "luminance": 0.03059
}

Semantic roles & 50–950 ramp

primary
#4E175F
secondary
#51963C
accent
#E4446A
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #4E175F

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

Preview Lab → · Contrast checker → · Palette generator →

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