#4E1866#4E1866

#4E1866 is a dark, vivid purple. Relative luminance 0.032; OKLCH L 33.6% C 0.133 H 313.2°. Best body text is #FFFFFF at 12.76:1 contrast (WCAG AA passes).

Color values

HEX#4E1866
RGBrgb(78, 24, 102)
HSLhsl(282, 62%, 25%)
HSVhsv(282, 76%, 40%)
CMYKcmyk(23.5%, 76.5%, 0%, 60%)
CIE-LABlab(20.95, 38.32, -34.47)
CIE-LCHlch(20.95, 51.55, 318.02°)
OKLaboklab(33.55% 0.0913 -0.0973)
OKLCHoklch(33.55% 0.133 313.2)
XYZxyz(5.8664, 3.2325, 12.8827)
Luminance0.0323 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1866 #306618
analogous
#271866 #4E1866 #661857
triadic
#4E1866 #664E18 #18664E
tetradic
#4E1866 #662718 #306618 #185766
square
#4E1866 #662718 #306618 #185766
split-complementary
#4E1866 #576618 #186627
monochromatic
#130619 #280C34 #4E1866 #742498 #9A2FC9

Accessibility & contrast

On white

12.76
#4E1866 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#4E1866 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1866
12.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1866#FFFFFF#000000##FFFFFF
##4E18661.0012.761.6512.76
#FFFFFF12.761.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003068
Deuteranopia (green-blind)
#113464
Tritanopia (blue-blind)
#4B293D
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #4e1866;
/* rgb */ color: rgb(78, 24, 102);
/* oklch */ color: oklch(33.6% 0.133 313.2);
Tailwind
colors: {
  custom: {
    50: '#835b92',
    500: '#4e1866',
    950: '#000000',
  },
}
SCSS
$custom: #4e1866;
$custom-light: #835b92;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1866",
  "rgb": {
    "r": 78,
    "g": 24,
    "b": 102
  },
  "hsl": {
    "h": 281.538,
    "s": 61.905,
    "l": 24.706
  },
  "oklch": {
    "l": 0.33553,
    "c": 0.13346,
    "h": 313.2
  },
  "luminance": 0.03232
}

Semantic roles & 50–950 ramp

primary
#4E1866
secondary
#5B9C3E
accent
#E54375
background
#F8F5F9
surface
#EFE9F1
border
#CAC5CB
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #4E1866

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

Preview Lab → · Contrast checker → · Palette generator →

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