#4E27AB#4E27AB

#4E27AB is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.4% C 0.193 H 288.3°. Best body text is #FFFFFF at 9.54:1 contrast (WCAG AA passes).

Color values

HEX#4E27AB
RGBrgb(78, 39, 171)
HSLhsl(258, 63%, 41%)
HSVhsv(258, 77%, 67%)
CMYKcmyk(54.4%, 77.2%, 0%, 32.9%)
CIE-LABlab(29.44, 49.39, -63.80)
CIE-LCHlch(29.44, 80.68, 307.74°)
OKLaboklab(41.39% 0.0607 -0.1835)
OKLCHoklch(41.39% 0.193 288.3)
XYZxyz(11.2159, 6.0105, 39.0893)
Luminance0.0601 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E27AB #84AB27
analogous
#2742AB #4E27AB #9027AB
triadic
#4E27AB #AB4E27 #27AB4E
tetradic
#4E27AB #AB2742 #84AB27 #27AB90
square
#4E27AB #AB2742 #84AB27 #27AB90
split-complementary
#4E27AB #AB9027 #42AB27
monochromatic
#211047 #371C79 #4E27AB #693DD3 #8F6EDE

Accessibility & contrast

On white

9.54
#4E27AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#4E27AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E27AB
9.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E27AB#FFFFFF#000000##FFFFFF
##4E27AB1.009.542.209.54
#FFFFFF9.541.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048AF
Deuteranopia (green-blind)
#0042A9
Tritanopia (blue-blind)
#284C68
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #4e27ab;
/* rgb */ color: rgb(78, 39, 171);
/* oklch */ color: oklch(41.4% 0.193 288.3);
Tailwind
colors: {
  custom: {
    50: '#8a66c5',
    500: '#4e27ab',
    950: '#000000',
  },
}
SCSS
$custom: #4e27ab;
$custom-light: #8a66c5;
$custom-dark: #000000;
JSON
{
  "hex": "#4e27ab",
  "rgb": {
    "r": 78,
    "g": 39,
    "b": 171
  },
  "hsl": {
    "h": 257.727,
    "s": 62.857,
    "l": 41.176
  },
  "oklch": {
    "l": 0.41394,
    "c": 0.19332,
    "h": 288.3
  },
  "luminance": 0.06011
}

Semantic roles & 50–950 ramp

primary
#4E27AB
secondary
#AAC569
accent
#E642B5
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #4E27AB

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

Preview Lab → · Contrast checker → · Palette generator →

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