#4E186B#4E186B

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

Color values

HEX#4E186B
RGBrgb(78, 24, 107)
HSLhsl(279, 63%, 26%)
HSVhsv(279, 78%, 42%)
CMYKcmyk(27.1%, 77.6%, 0%, 58%)
CIE-LABlab(21.34, 39.49, -37.12)
CIE-LCHlch(21.34, 54.19, 316.77°)
OKLaboklab(33.95% 0.0905 -0.1051)
OKLCHoklch(33.95% 0.139 310.7)
XYZxyz(6.1219, 3.3347, 14.2282)
Luminance0.0333 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E186B #356B18
analogous
#24186B #4E186B #6B185E
triadic
#4E186B #6B4E18 #186B4E
tetradic
#4E186B #6B2418 #356B18 #185E6B
square
#4E186B #6B2418 #356B18 #185E6B
split-complementary
#4E186B #5E6B18 #186B24
monochromatic
#120619 #2A0D39 #4E186B #72239D #972ECF

Accessibility & contrast

On white

12.60
#4E186B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E186B
12.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E186B#FFFFFF#000000##FFFFFF
##4E186B1.0012.601.6712.60
#FFFFFF12.601.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00316D
Deuteranopia (green-blind)
#083469
Tritanopia (blue-blind)
#4A2B40
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #4e186b;
/* rgb */ color: rgb(78, 24, 107);
/* oklch */ color: oklch(33.9% 0.139 310.7);
Tailwind
colors: {
  custom: {
    50: '#835b96',
    500: '#4e186b',
    950: '#000000',
  },
}
SCSS
$custom: #4e186b;
$custom-light: #835b96;
$custom-dark: #000000;
JSON
{
  "hex": "#4e186b",
  "rgb": {
    "r": 78,
    "g": 24,
    "b": 107
  },
  "hsl": {
    "h": 279.036,
    "s": 63.359,
    "l": 25.686
  },
  "oklch": {
    "l": 0.33949,
    "c": 0.1387,
    "h": 310.7
  },
  "luminance": 0.03335
}

Semantic roles & 50–950 ramp

primary
#4E186B
secondary
#61A13E
accent
#E6417B
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #4E186B

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

Preview Lab → · Contrast checker → · Palette generator →

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