#4E196A#4E196A

#4E196A is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.0% C 0.136 H 311.1°. Best body text is #FFFFFF at 12.57:1 contrast (WCAG AA passes).

Color values

HEX#4E196A
RGBrgb(78, 25, 106)
HSLhsl(279, 62%, 26%)
HSVhsv(279, 76%, 42%)
CMYKcmyk(26.4%, 76.4%, 0%, 58.4%)
CIE-LABlab(21.42, 38.81, -36.34)
CIE-LCHlch(21.42, 53.17, 316.88°)
OKLaboklab(33.98% 0.0896 -0.1028)
OKLCHoklch(33.98% 0.136 311.1)
XYZxyz(6.0905, 3.3557, 13.9598)
Luminance0.0336 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E196A #356A19
analogous
#25196A #4E196A #6A195D
triadic
#4E196A #6A4E19 #196A4E
tetradic
#4E196A #6A2519 #356A19 #195D6A
square
#4E196A #6A2519 #356A19 #195D6A
split-complementary
#4E196A #5D6A19 #196A25
monochromatic
#120619 #2A0D38 #4E196A #72259C #9730CD

Accessibility & contrast

On white

12.57
#4E196A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E196A
12.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E196A#FFFFFF#000000##FFFFFF
##4E196A1.0012.571.6712.57
#FFFFFF12.571.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00316C
Deuteranopia (green-blind)
#0B3468
Tritanopia (blue-blind)
#4A2B40
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #4e196a;
/* rgb */ color: rgb(78, 25, 106);
/* oklch */ color: oklch(34.0% 0.136 311.1);
Tailwind
colors: {
  custom: {
    50: '#835b95',
    500: '#4e196a',
    950: '#000000',
  },
}
SCSS
$custom: #4e196a;
$custom-light: #835b95;
$custom-dark: #000000;
JSON
{
  "hex": "#4e196a",
  "rgb": {
    "r": 78,
    "g": 25,
    "b": 106
  },
  "hsl": {
    "h": 279.259,
    "s": 61.832,
    "l": 25.686
  },
  "oklch": {
    "l": 0.3398,
    "c": 0.13639,
    "h": 311.1
  },
  "luminance": 0.03356
}

Semantic roles & 50–950 ramp

primary
#4E196A
secondary
#61A03F
accent
#E5437B
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #4E196A

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

Preview Lab → · Contrast checker → · Palette generator →

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