#4E186D#4E186D

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

Color values

HEX#4E186D
RGBrgb(78, 24, 109)
HSLhsl(278, 64%, 26%)
HSVhsv(278, 78%, 43%)
CMYKcmyk(28.4%, 78%, 0%, 57.3%)
CIE-LABlab(21.50, 39.96, -38.16)
CIE-LCHlch(21.50, 55.26, 316.32°)
OKLaboklab(34.11% 0.0901 -0.1082)
OKLCHoklch(34.11% 0.141 309.8)
XYZxyz(6.2283, 3.3772, 14.7888)
Luminance0.0338 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E186D #376D18
analogous
#23186D #4E186D #6D1861
triadic
#4E186D #6D4E18 #186D4E
tetradic
#4E186D #6D2318 #376D18 #18616D
square
#4E186D #6D2318 #376D18 #18616D
split-complementary
#4E186D #616D18 #186D23
monochromatic
#120619 #2A0D3B #4E186D #72239F #962ED1

Accessibility & contrast

On white

12.53
#4E186D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E186D
12.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E186D#FFFFFF#000000##FFFFFF
##4E186D1.0012.531.6812.53
#FFFFFF12.531.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00316F
Deuteranopia (green-blind)
#03346B
Tritanopia (blue-blind)
#4A2C41
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #4e186d;
/* rgb */ color: rgb(78, 24, 109);
/* oklch */ color: oklch(34.1% 0.141 309.8);
Tailwind
colors: {
  custom: {
    50: '#835b97',
    500: '#4e186d',
    950: '#000000',
  },
}
SCSS
$custom: #4e186d;
$custom-light: #835b97;
$custom-dark: #000000;
JSON
{
  "hex": "#4e186d",
  "rgb": {
    "r": 78,
    "g": 24,
    "b": 109
  },
  "hsl": {
    "h": 278.118,
    "s": 63.91,
    "l": 26.078
  },
  "oklch": {
    "l": 0.34111,
    "c": 0.1408,
    "h": 309.8
  },
  "luminance": 0.03377
}

Semantic roles & 50–950 ramp

primary
#4E186D
secondary
#63A33E
accent
#E7417D
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #4E186D

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

Preview Lab → · Contrast checker → · Palette generator →

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