#4E166F#4E166F

#4E166F is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.1% C 0.145 H 309.2°. Best body text is #FFFFFF at 12.59:1 contrast (WCAG AA passes).

Color values

HEX#4E166F
RGBrgb(78, 22, 111)
HSLhsl(278, 67%, 26%)
HSVhsv(278, 80%, 44%)
CMYKcmyk(29.7%, 80.2%, 0%, 56.5%)
CIE-LABlab(21.36, 41.28, -39.67)
CIE-LCHlch(21.36, 57.25, 316.14°)
OKLaboklab(34.07% 0.0917 -0.1126)
OKLCHoklch(34.07% 0.145 309.2)
XYZxyz(6.2975, 3.3413, 15.3490)
Luminance0.0334 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E166F #376F16
analogous
#21166F #4E166F #6F1663
triadic
#4E166F #6F4E16 #166F4E
tetradic
#4E166F #6F2116 #376F16 #16636F
square
#4E166F #6F2116 #376F16 #16636F
split-complementary
#4E166F #636F16 #166F21
monochromatic
#12051A #2A0C3C #4E166F #7220A2 #962BD5

Accessibility & contrast

On white

12.59
#4E166F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#4E166F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E166F
12.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E166F#FFFFFF#000000##FFFFFF
##4E166F1.0012.591.6712.59
#FFFFFF12.591.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003171
Deuteranopia (green-blind)
#00346D
Tritanopia (blue-blind)
#492C42
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #4e166f;
/* rgb */ color: rgb(78, 22, 111);
/* oklch */ color: oklch(34.1% 0.145 309.2);
Tailwind
colors: {
  custom: {
    50: '#845a99',
    500: '#4e166f',
    950: '#000000',
  },
}
SCSS
$custom: #4e166f;
$custom-light: #845a99;
$custom-dark: #000000;
JSON
{
  "hex": "#4e166f",
  "rgb": {
    "r": 78,
    "g": 22,
    "b": 111
  },
  "hsl": {
    "h": 277.753,
    "s": 66.917,
    "l": 26.078
  },
  "oklch": {
    "l": 0.34068,
    "c": 0.14522,
    "h": 309.2
  },
  "luminance": 0.03341
}

Semantic roles & 50–950 ramp

primary
#4E166F
secondary
#63A53C
accent
#EA3E7E
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4E166F

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

Preview Lab → · Contrast checker → · Palette generator →

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