#4E196B#4E196B

#4E196B is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.1% C 0.137 H 310.6°. Best body text is #FFFFFF at 12.54:1 contrast (WCAG AA passes).

Color values

HEX#4E196B
RGBrgb(78, 25, 107)
HSLhsl(279, 62%, 26%)
HSVhsv(279, 77%, 42%)
CMYKcmyk(27.1%, 76.6%, 0%, 58%)
CIE-LABlab(21.49, 39.05, -36.86)
CIE-LCHlch(21.49, 53.70, 316.65°)
OKLaboklab(34.06% 0.0895 -0.1044)
OKLCHoklch(34.06% 0.137 310.6)
XYZxyz(6.1428, 3.3766, 14.2352)
Luminance0.0338 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E196B #366B19
analogous
#25196B #4E196B #6B195F
triadic
#4E196B #6B4E19 #196B4E
tetradic
#4E196B #6B2519 #366B19 #195F6B
square
#4E196B #6B2519 #366B19 #195F6B
split-complementary
#4E196B #5F6B19 #196B25
monochromatic
#120619 #2A0D39 #4E196B #72259D #9630CE

Accessibility & contrast

On white

12.54
#4E196B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#4E196B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E196B
12.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E196B#FFFFFF#000000##FFFFFF
##4E196B1.0012.541.6812.54
#FFFFFF12.541.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00316D
Deuteranopia (green-blind)
#093469
Tritanopia (blue-blind)
#4A2C40
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #4e196b;
/* rgb */ color: rgb(78, 25, 107);
/* oklch */ color: oklch(34.1% 0.137 310.6);
Tailwind
colors: {
  custom: {
    50: '#835b96',
    500: '#4e196b',
    950: '#000000',
  },
}
SCSS
$custom: #4e196b;
$custom-light: #835b96;
$custom-dark: #000000;
JSON
{
  "hex": "#4e196b",
  "rgb": {
    "r": 78,
    "g": 25,
    "b": 107
  },
  "hsl": {
    "h": 278.78,
    "s": 62.121,
    "l": 25.882
  },
  "oklch": {
    "l": 0.34059,
    "c": 0.13745,
    "h": 310.6
  },
  "luminance": 0.03376
}

Semantic roles & 50–950 ramp

primary
#4E196B
secondary
#62A13F
accent
#E5437C
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #4E196B

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

Preview Lab → · Contrast checker → · Palette generator →

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