#4E186E#4E186E

#4E186E is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.2% C 0.142 H 309.4°. Best body text is #FFFFFF at 12.50:1 contrast (WCAG AA passes).

Color values

HEX#4E186E
RGBrgb(78, 24, 110)
HSLhsl(278, 64%, 26%)
HSVhsv(278, 78%, 43%)
CMYKcmyk(29.1%, 78.2%, 0%, 56.9%)
CIE-LABlab(21.58, 40.20, -38.68)
CIE-LCHlch(21.58, 55.78, 316.10°)
OKLaboklab(34.19% 0.09 -0.1097)
OKLCHoklch(34.19% 0.142 309.4)
XYZxyz(6.2824, 3.3989, 15.0739)
Luminance0.0340 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E186E #386E18
analogous
#23186E #4E186E #6E1863
triadic
#4E186E #6E4E18 #186E4E
tetradic
#4E186E #6E2318 #386E18 #18636E
square
#4E186E #6E2318 #386E18 #18636E
split-complementary
#4E186E #636E18 #186E23
monochromatic
#120519 #2A0D3C #4E186E #7223A0 #952FD2

Accessibility & contrast

On white

12.50
#4E186E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E186E
12.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E186E#FFFFFF#000000##FFFFFF
##4E186E1.0012.501.6812.50
#FFFFFF12.501.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003270
Deuteranopia (green-blind)
#01346C
Tritanopia (blue-blind)
#492C42
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #4e186e;
/* rgb */ color: rgb(78, 24, 110);
/* oklch */ color: oklch(34.2% 0.142 309.4);
Tailwind
colors: {
  custom: {
    50: '#835b98',
    500: '#4e186e',
    950: '#000000',
  },
}
SCSS
$custom: #4e186e;
$custom-light: #835b98;
$custom-dark: #000000;
JSON
{
  "hex": "#4e186e",
  "rgb": {
    "r": 78,
    "g": 24,
    "b": 110
  },
  "hsl": {
    "h": 277.674,
    "s": 64.179,
    "l": 26.275
  },
  "oklch": {
    "l": 0.34192,
    "c": 0.14185,
    "h": 309.4
  },
  "luminance": 0.03399
}

Semantic roles & 50–950 ramp

primary
#4E186E
secondary
#64A43E
accent
#E7417F
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4E186E

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

Preview Lab → · Contrast checker → · Palette generator →

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