#4E1885#4E1885

#4E1885 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.2% C 0.166 H 300.4°. Best body text is #FFFFFF at 11.71:1 contrast (WCAG AA passes).

Color values

HEX#4E1885
RGBrgb(78, 24, 133)
HSLhsl(270, 69%, 31%)
HSVhsv(270, 82%, 52%)
CMYKcmyk(41.4%, 82%, 0%, 47.8%)
CIE-LABlab(23.56, 45.84, -50.12)
CIE-LCHlch(23.56, 67.92, 312.45°)
OKLaboklab(36.2% 0.084 -0.1433)
OKLCHoklch(36.2% 0.166 300.4)
XYZxyz(7.7011, 3.9663, 22.5456)
Luminance0.0397 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1885 #4F8518
analogous
#181885 #4E1885 #841885
triadic
#4E1885 #854E18 #18854E
tetradic
#4E1885 #851818 #4F8518 #188584
square
#4E1885 #851818 #4F8518 #188584
split-complementary
#4E1885 #858418 #188518
monochromatic
#11051D #300F51 #4E1885 #6C21B9 #8B3CDC

Accessibility & contrast

On white

11.71
#4E1885 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#4E1885 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1885
11.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1885#FFFFFF#000000##FFFFFF
##4E18851.0011.711.7911.71
#FFFFFF11.711.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003888
Deuteranopia (green-blind)
#003783
Tritanopia (blue-blind)
#41364F
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #4e1885;
/* rgb */ color: rgb(78, 24, 133);
/* oklch */ color: oklch(36.2% 0.166 300.4);
Tailwind
colors: {
  custom: {
    50: '#865ca9',
    500: '#4e1885',
    950: '#000000',
  },
}
SCSS
$custom: #4e1885;
$custom-light: #865ca9;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1885",
  "rgb": {
    "r": 78,
    "g": 24,
    "b": 133
  },
  "hsl": {
    "h": 269.725,
    "s": 69.427,
    "l": 30.784
  },
  "oklch": {
    "l": 0.362,
    "c": 0.16608,
    "h": 300.4
  },
  "luminance": 0.03966
}

Semantic roles & 50–950 ramp

primary
#4E1885
secondary
#7DB940
accent
#EC3C95
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0410
muted
#7D797F

Preview Lab

Preview with #4E1885

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

Preview Lab → · Contrast checker → · Palette generator →

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