#4E165E#4E165E

#4E165E is a dark, vivid purple. Relative luminance 0.030; OKLCH L 32.7% C 0.128 H 317.7°. Best body text is #FFFFFF at 13.12:1 contrast (WCAG AA passes).

Color values

HEX#4E165E
RGBrgb(78, 22, 94)
HSLhsl(287, 62%, 23%)
HSVhsv(287, 77%, 37%)
CMYKcmyk(17%, 76.6%, 0%, 63.1%)
CIE-LABlab(20.05, 37.40, -30.65)
CIE-LCHlch(20.05, 48.35, 320.66°)
OKLaboklab(32.73% 0.0945 -0.0861)
OKLCHoklch(32.73% 0.128 317.7)
XYZxyz(5.4489, 3.0019, 10.8799)
Luminance0.0300 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E165E #265E16
analogous
#2A165E #4E165E #5E164A
triadic
#4E165E #5E4E16 #165E4E
tetradic
#4E165E #5E2A16 #265E16 #164A5E
square
#4E165E #5E2A16 #265E16 #164A5E
split-complementary
#4E165E #4A5E16 #165E2A
monochromatic
#150619 #250A2C #4E165E #772290 #A02DC1

Accessibility & contrast

On white

13.12
#4E165E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E165E
13.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E165E#FFFFFF#000000##FFFFFF
##4E165E1.0013.121.6013.12
#FFFFFF13.121.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D60
Deuteranopia (green-blind)
#18325C
Tritanopia (blue-blind)
#4D2438
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #4e165e;
/* rgb */ color: rgb(78, 22, 94);
/* oklch */ color: oklch(32.7% 0.128 317.7);
Tailwind
colors: {
  custom: {
    50: '#82598c',
    500: '#4e165e',
    950: '#000000',
  },
}
SCSS
$custom: #4e165e;
$custom-light: #82598c;
$custom-dark: #000000;
JSON
{
  "hex": "#4e165e",
  "rgb": {
    "r": 78,
    "g": 22,
    "b": 94
  },
  "hsl": {
    "h": 286.667,
    "s": 62.069,
    "l": 22.745
  },
  "oklch": {
    "l": 0.32725,
    "c": 0.12785,
    "h": 317.7
  },
  "luminance": 0.03002
}

Semantic roles & 50–950 ramp

primary
#4E165E
secondary
#4F953B
accent
#E54367
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #4E165E

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

Preview Lab → · Contrast checker → · Palette generator →

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