#4E165F#4E165F

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

Color values

HEX#4E165F
RGBrgb(78, 22, 95)
HSLhsl(286, 62%, 23%)
HSVhsv(286, 77%, 37%)
CMYKcmyk(17.9%, 76.8%, 0%, 62.7%)
CIE-LABlab(20.12, 37.62, -31.20)
CIE-LCHlch(20.12, 48.87, 320.33°)
OKLaboklab(32.8% 0.0944 -0.0877)
OKLCHoklch(32.8% 0.129 317.1)
XYZxyz(5.4940, 3.0200, 11.1178)
Luminance0.0302 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E165F #275F16
analogous
#29165F #4E165F #5F164B
triadic
#4E165F #5F4E16 #165F4E
tetradic
#4E165F #5F2916 #275F16 #164B5F
square
#4E165F #5F2916 #275F16 #164B5F
split-complementary
#4E165F #4B5F16 #165F29
monochromatic
#140619 #250A2D #4E165F #772291 #A02DC2

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4E165F#FFFFFF#000000##FFFFFF
##4E165F1.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)
#002D61
Deuteranopia (green-blind)
#17325D
Tritanopia (blue-blind)
#4D2539
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #4e165f;
/* rgb */ color: rgb(78, 22, 95);
/* oklch */ color: oklch(32.8% 0.129 317.1);
Tailwind
colors: {
  custom: {
    50: '#82598d',
    500: '#4e165f',
    950: '#000000',
  },
}
SCSS
$custom: #4e165f;
$custom-light: #82598d;
$custom-dark: #000000;
JSON
{
  "hex": "#4e165f",
  "rgb": {
    "r": 78,
    "g": 22,
    "b": 95
  },
  "hsl": {
    "h": 286.027,
    "s": 62.393,
    "l": 22.941
  },
  "oklch": {
    "l": 0.32799,
    "c": 0.12887,
    "h": 317.1
  },
  "luminance": 0.0302
}

Semantic roles & 50–950 ramp

primary
#4E165F
secondary
#50963B
accent
#E54268
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #4E165F

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

Preview Lab → · Contrast checker → · Palette generator →

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