#4E2886#4E2886

#4E2886 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.2% C 0.149 H 297.4°. Best body text is #FFFFFF at 10.65:1 contrast (WCAG AA passes).

Color values

HEX#4E2886
RGBrgb(78, 40, 134)
HSLhsl(264, 54%, 34%)
HSVhsv(264, 70%, 53%)
CMYKcmyk(41.8%, 70.1%, 0%, 47.5%)
CIE-LABlab(26.33, 38.51, -46.23)
CIE-LCHlch(26.33, 60.17, 309.80°)
OKLaboklab(38.18% 0.0683 -0.132)
OKLCHoklch(38.18% 0.149 297.4)
XYZxyz(8.2026, 4.8584, 23.0552)
Luminance0.0486 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2886 #608628
analogous
#283186 #4E2886 #7D2886
triadic
#4E2886 #864E28 #28864E
tetradic
#4E2886 #862831 #608628 #28867D
square
#4E2886 #862831 #608628 #28867D
split-complementary
#4E2886 #867D28 #318628
monochromatic
#170C28 #331A57 #4E2886 #6936B5 #895BCE

Accessibility & contrast

On white

10.65
#4E2886 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#4E2886 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2886
10.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2886#FFFFFF#000000##FFFFFF
##4E28861.0010.651.9710.65
#FFFFFF10.651.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F89
Deuteranopia (green-blind)
#003D84
Tritanopia (blue-blind)
#403F53
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #4e2886;
/* rgb */ color: rgb(78, 40, 134);
/* oklch */ color: oklch(38.2% 0.149 297.4);
Tailwind
colors: {
  custom: {
    50: '#8565aa',
    500: '#4e2886',
    950: '#000000',
  },
}
SCSS
$custom: #4e2886;
$custom-light: #8565aa;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2886",
  "rgb": {
    "r": 78,
    "g": 40,
    "b": 134
  },
  "hsl": {
    "h": 264.255,
    "s": 54.023,
    "l": 34.118
  },
  "oklch": {
    "l": 0.38181,
    "c": 0.14862,
    "h": 297.4
  },
  "luminance": 0.04859
}

Semantic roles & 50–950 ramp

primary
#4E2886
secondary
#8EB357
accent
#DD4AA2
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #4E2886

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

Preview Lab → · Contrast checker → · Palette generator →

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