#4E166B#4E166B

#4E166B is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.7% C 0.141 H 311.0°. Best body text is #FFFFFF at 12.72:1 contrast (WCAG AA passes).

Color values

HEX#4E166B
RGBrgb(78, 22, 107)
HSLhsl(280, 66%, 25%)
HSVhsv(280, 79%, 42%)
CMYKcmyk(27.1%, 79.4%, 0%, 58%)
CIE-LABlab(21.04, 40.34, -37.60)
CIE-LCHlch(21.04, 55.15, 317.01°)
OKLaboklab(33.74% 0.0926 -0.1065)
OKLCHoklch(33.74% 0.141 311)
XYZxyz(6.0821, 3.2552, 14.2150)
Luminance0.0326 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E166B #336B16
analogous
#23166B #4E166B #6B165D
triadic
#4E166B #6B4E16 #166B4E
tetradic
#4E166B #6B2316 #336B16 #165D6B
square
#4E166B #6B2316 #336B16 #165D6B
split-complementary
#4E166B #5D6B16 #166B23
monochromatic
#130519 #290C38 #4E166B #73209E #982BD1

Accessibility & contrast

On white

12.72
#4E166B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#4E166B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E166B
12.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E166B#FFFFFF#000000##FFFFFF
##4E166B1.0012.721.6512.72
#FFFFFF12.721.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00306D
Deuteranopia (green-blind)
#053369
Tritanopia (blue-blind)
#4A2A40
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #4e166b;
/* rgb */ color: rgb(78, 22, 107);
/* oklch */ color: oklch(33.7% 0.141 311.0);
Tailwind
colors: {
  custom: {
    50: '#835a96',
    500: '#4e166b',
    950: '#000000',
  },
}
SCSS
$custom: #4e166b;
$custom-light: #835a96;
$custom-dark: #000000;
JSON
{
  "hex": "#4e166b",
  "rgb": {
    "r": 78,
    "g": 22,
    "b": 107
  },
  "hsl": {
    "h": 279.529,
    "s": 65.891,
    "l": 25.294
  },
  "oklch": {
    "l": 0.33738,
    "c": 0.1411,
    "h": 311
  },
  "luminance": 0.03255
}

Semantic roles & 50–950 ramp

primary
#4E166B
secondary
#5EA13B
accent
#E93F79
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #4E166B

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

Preview Lab → · Contrast checker → · Palette generator →

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