#4E2786#4E2786

#4E2786 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.0% C 0.150 H 297.6°. Best body text is #FFFFFF at 10.72:1 contrast (WCAG AA passes).

Color values

HEX#4E2786
RGBrgb(78, 39, 134)
HSLhsl(265, 55%, 34%)
HSVhsv(265, 71%, 53%)
CMYKcmyk(41.8%, 70.9%, 0%, 47.5%)
CIE-LABlab(26.13, 39.05, -46.54)
CIE-LCHlch(26.13, 60.76, 310.00°)
OKLaboklab(38.04% 0.0694 -0.1329)
OKLCHoklch(38.04% 0.15 297.6)
XYZxyz(8.1694, 4.7918, 23.0441)
Luminance0.0479 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2786 #5F8627
analogous
#273086 #4E2786 #7E2786
triadic
#4E2786 #864E27 #27864E
tetradic
#4E2786 #862730 #5F8627 #27867E
square
#4E2786 #862730 #5F8627 #27867E
split-complementary
#4E2786 #867E27 #308627
monochromatic
#170B27 #321957 #4E2786 #6A35B5 #8959CF

Accessibility & contrast

On white

10.72
#4E2786 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#4E2786 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2786
10.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2786#FFFFFF#000000##FFFFFF
##4E27861.0010.721.9610.72
#FFFFFF10.721.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.721.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4e2786;
/* rgb */ color: rgb(78, 39, 134);
/* oklch */ color: oklch(38.0% 0.150 297.6);
Tailwind
colors: {
  custom: {
    50: '#8564aa',
    500: '#4e2786',
    950: '#000000',
  },
}
SCSS
$custom: #4e2786;
$custom-light: #8564aa;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2786",
  "rgb": {
    "r": 78,
    "g": 39,
    "b": 134
  },
  "hsl": {
    "h": 264.632,
    "s": 54.913,
    "l": 33.922
  },
  "oklch": {
    "l": 0.38042,
    "c": 0.14994,
    "h": 297.6
  },
  "luminance": 0.04792
}

Semantic roles & 50–950 ramp

primary
#4E2786
secondary
#8DB455
accent
#DE4AA1
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #4E2786

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

Preview Lab → · Contrast checker → · Palette generator →

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