#4E2986#4E2986

#4E2986 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.3% C 0.147 H 297.2°. Best body text is #FFFFFF at 10.58:1 contrast (WCAG AA passes).

Color values

HEX#4E2986
RGBrgb(78, 41, 134)
HSLhsl(264, 53%, 34%)
HSVhsv(264, 69%, 53%)
CMYKcmyk(41.8%, 69.4%, 0%, 47.5%)
CIE-LABlab(26.52, 37.97, -45.91)
CIE-LCHlch(26.52, 59.57, 309.59°)
OKLaboklab(38.32% 0.0672 -0.131)
OKLCHoklch(38.32% 0.147 297.2)
XYZxyz(8.2368, 4.9267, 23.0666)
Luminance0.0493 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2986 #618629
analogous
#293386 #4E2986 #7D2986
triadic
#4E2986 #864E29 #29864E
tetradic
#4E2986 #862933 #618629 #29867D
square
#4E2986 #862933 #618629 #29867D
split-complementary
#4E2986 #867D29 #338629
monochromatic
#170C28 #331B57 #4E2986 #6937B5 #895CCD

Accessibility & contrast

On white

10.58
#4E2986 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#4E2986 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2986
10.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2986#FFFFFF#000000##FFFFFF
##4E29861.0010.581.9910.58
#FFFFFF10.581.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F89
Deuteranopia (green-blind)
#003E84
Tritanopia (blue-blind)
#403F54
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #4e2986;
/* rgb */ color: rgb(78, 41, 134);
/* oklch */ color: oklch(38.3% 0.147 297.2);
Tailwind
colors: {
  custom: {
    50: '#8565aa',
    500: '#4e2986',
    950: '#000000',
  },
}
SCSS
$custom: #4e2986;
$custom-light: #8565aa;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2986",
  "rgb": {
    "r": 78,
    "g": 41,
    "b": 134
  },
  "hsl": {
    "h": 263.871,
    "s": 53.143,
    "l": 34.314
  },
  "oklch": {
    "l": 0.38322,
    "c": 0.14727,
    "h": 297.2
  },
  "luminance": 0.04927
}

Semantic roles & 50–950 ramp

primary
#4E2986
secondary
#8FB358
accent
#DD4BA3
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #4E2986

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

Preview Lab → · Contrast checker → · Palette generator →

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