#4E27A1#4E27A1

#4E27A1 is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.4% C 0.182 H 290.4°. Best body text is #FFFFFF at 9.86:1 contrast (WCAG AA passes).

Color values

HEX#4E27A1
RGBrgb(78, 39, 161)
HSLhsl(259, 61%, 39%)
HSVhsv(259, 76%, 63%)
CMYKcmyk(51.6%, 75.8%, 0%, 36.9%)
CIE-LABlab(28.49, 46.58, -59.31)
CIE-LCHlch(28.49, 75.42, 308.14°)
OKLaboklab(40.45% 0.0635 -0.1704)
OKLCHoklch(40.45% 0.182 290.4)
XYZxyz(10.2986, 5.6435, 34.2580)
Luminance0.0564 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E27A1 #7AA127
analogous
#273DA1 #4E27A1 #8B27A1
triadic
#4E27A1 #A14E27 #27A14E
tetradic
#4E27A1 #A1273D #7AA127 #27A18B
square
#4E27A1 #A1273D #7AA127 #27A18B
split-complementary
#4E27A1 #A18B27 #3DA127
monochromatic
#1E0F3E #361B70 #4E27A1 #6737CE #8D68DA

Accessibility & contrast

On white

9.86
#4E27A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#4E27A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E27A1
9.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E27A1#FFFFFF#000000##FFFFFF
##4E27A11.009.862.139.86
#FFFFFF9.861.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A4
Deuteranopia (green-blind)
#00409F
Tritanopia (blue-blind)
#314862
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #4e27a1;
/* rgb */ color: rgb(78, 39, 161);
/* oklch */ color: oklch(40.4% 0.182 290.4);
Tailwind
colors: {
  custom: {
    50: '#8865be',
    500: '#4e27a1',
    950: '#000000',
  },
}
SCSS
$custom: #4e27a1;
$custom-light: #8865be;
$custom-dark: #000000;
JSON
{
  "hex": "#4e27a1",
  "rgb": {
    "r": 78,
    "g": 39,
    "b": 161
  },
  "hsl": {
    "h": 259.18,
    "s": 61,
    "l": 39.216
  },
  "oklch": {
    "l": 0.40445,
    "c": 0.18183,
    "h": 290.4
  },
  "luminance": 0.05644
}

Semantic roles & 50–950 ramp

primary
#4E27A1
secondary
#A3C063
accent
#E444B1
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4E27A1

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

Preview Lab → · Contrast checker → · Palette generator →

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