#4E2186#4E2186

#4E2186 is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.3% C 0.157 H 298.7°. Best body text is #FFFFFF at 11.14:1 contrast (WCAG AA passes).

Color values

HEX#4E2186
RGBrgb(78, 33, 134)
HSLhsl(267, 60%, 33%)
HSVhsv(267, 75%, 53%)
CMYKcmyk(41.8%, 75.4%, 0%, 47.5%)
CIE-LABlab(25.04, 42.11, -48.32)
CIE-LCHlch(25.04, 64.10, 311.07°)
OKLaboklab(37.27% 0.0756 -0.1381)
OKLCHoklch(37.27% 0.157 298.7)
XYZxyz(7.9877, 4.4285, 22.9836)
Luminance0.0443 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2186 #598621
analogous
#212686 #4E2186 #812186
triadic
#4E2186 #864E21 #21864E
tetradic
#4E2186 #862126 #598621 #218681
square
#4E2186 #862126 #598621 #218681
split-complementary
#4E2186 #868121 #268621
monochromatic
#150924 #311555 #4E2186 #6B2DB7 #894ED3

Accessibility & contrast

On white

11.14
#4E2186 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#4E2186 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2186
11.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2186#FFFFFF#000000##FFFFFF
##4E21861.0011.141.8911.14
#FFFFFF11.141.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B89
Deuteranopia (green-blind)
#003A84
Tritanopia (blue-blind)
#403B51
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #4e2186;
/* rgb */ color: rgb(78, 33, 134);
/* oklch */ color: oklch(37.3% 0.157 298.7);
Tailwind
colors: {
  custom: {
    50: '#8561aa',
    500: '#4e2186',
    950: '#000000',
  },
}
SCSS
$custom: #4e2186;
$custom-light: #8561aa;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2186",
  "rgb": {
    "r": 78,
    "g": 33,
    "b": 134
  },
  "hsl": {
    "h": 266.733,
    "s": 60.479,
    "l": 32.745
  },
  "oklch": {
    "l": 0.37266,
    "c": 0.15745,
    "h": 298.7
  },
  "luminance": 0.04429
}

Semantic roles & 50–950 ramp

primary
#4E2186
secondary
#87B74C
accent
#E4449D
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4E2186

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

Preview Lab → · Contrast checker → · Palette generator →

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