#4E186A#4E186A

#4E186A is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.9% C 0.138 H 311.2°. Best body text is #FFFFFF at 12.63:1 contrast (WCAG AA passes).

Color values

HEX#4E186A
RGBrgb(78, 24, 106)
HSLhsl(280, 63%, 25%)
HSVhsv(280, 77%, 42%)
CMYKcmyk(26.4%, 77.4%, 0%, 58.4%)
CIE-LABlab(21.26, 39.25, -36.59)
CIE-LCHlch(21.26, 53.66, 317.01°)
OKLaboklab(33.87% 0.0907 -0.1035)
OKLCHoklch(33.87% 0.138 311.2)
XYZxyz(6.0695, 3.3137, 13.9528)
Luminance0.0331 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E186A #346A18
analogous
#25186A #4E186A #6A185D
triadic
#4E186A #6A4E18 #186A4E
tetradic
#4E186A #6A2518 #346A18 #185D6A
square
#4E186A #6A2518 #346A18 #185D6A
split-complementary
#4E186A #5D6A18 #186A25
monochromatic
#120619 #290D38 #4E186A #73239C #972FCE

Accessibility & contrast

On white

12.63
#4E186A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#4E186A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E186A
12.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E186A#FFFFFF#000000##FFFFFF
##4E186A1.0012.631.6612.63
#FFFFFF12.631.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.631.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4e186a;
/* rgb */ color: rgb(78, 24, 106);
/* oklch */ color: oklch(33.9% 0.138 311.2);
Tailwind
colors: {
  custom: {
    50: '#835b95',
    500: '#4e186a',
    950: '#000000',
  },
}
SCSS
$custom: #4e186a;
$custom-light: #835b95;
$custom-dark: #000000;
JSON
{
  "hex": "#4e186a",
  "rgb": {
    "r": 78,
    "g": 24,
    "b": 106
  },
  "hsl": {
    "h": 279.512,
    "s": 63.077,
    "l": 25.49
  },
  "oklch": {
    "l": 0.33869,
    "c": 0.13765,
    "h": 311.2
  },
  "luminance": 0.03314
}

Semantic roles & 50–950 ramp

primary
#4E186A
secondary
#5FA03E
accent
#E6427A
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #4E186A

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

Preview Lab → · Contrast checker → · Palette generator →

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