#4E168D#4E168D

#4E168D is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.8% C 0.176 H 298.0°. Best body text is #FFFFFF at 11.52:1 contrast (WCAG AA passes).

Color values

HEX#4E168D
RGBrgb(78, 22, 141)
HSLhsl(268, 73%, 32%)
HSVhsv(268, 84%, 55%)
CMYKcmyk(44.7%, 84.4%, 0%, 44.7%)
CIE-LABlab(24.05, 48.61, -54.31)
CIE-LCHlch(24.05, 72.89, 311.83°)
OKLaboklab(36.77% 0.0828 -0.1556)
OKLCHoklch(36.77% 0.176 298)
XYZxyz(8.2353, 4.1165, 25.5548)
Luminance0.0412 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E168D #558D16
analogous
#161A8D #4E168D #8A168D
triadic
#4E168D #8D4E16 #168D4E
tetradic
#4E168D #8D161A #558D16 #168D8A
square
#4E168D #8D161A #558D16 #168D8A
split-complementary
#4E168D #8D8A16 #1A8D16
monochromatic
#130523 #310E58 #4E168D #6B1EC2 #8A3DE1

Accessibility & contrast

On white

11.52
#4E168D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#4E168D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E168D
11.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E168D#FFFFFF#000000##FFFFFF
##4E168D1.0011.521.8211.52
#FFFFFF11.521.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003990
Deuteranopia (green-blind)
#00388B
Tritanopia (blue-blind)
#3E3953
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4e168d;
/* rgb */ color: rgb(78, 22, 141);
/* oklch */ color: oklch(36.8% 0.176 298.0);
Tailwind
colors: {
  custom: {
    50: '#875caf',
    500: '#4e168d',
    950: '#000000',
  },
}
SCSS
$custom: #4e168d;
$custom-light: #875caf;
$custom-dark: #000000;
JSON
{
  "hex": "#4e168d",
  "rgb": {
    "r": 78,
    "g": 22,
    "b": 141
  },
  "hsl": {
    "h": 268.235,
    "s": 73.006,
    "l": 31.961
  },
  "oklch": {
    "l": 0.36772,
    "c": 0.17622,
    "h": 298
  },
  "luminance": 0.04117
}

Semantic roles & 50–950 ramp

primary
#4E168D
secondary
#83C13E
accent
#F03899
background
#F8F5FA
surface
#F0E9F5
border
#CBC5CF
text
#0C0411
muted
#7D7980

Preview Lab

Preview with #4E168D

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

Preview Lab → · Contrast checker → · Palette generator →

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