#4E27A2#4E27A2

#4E27A2 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.5% C 0.183 H 290.2°. Best body text is #FFFFFF at 9.83:1 contrast (WCAG AA passes).

Color values

HEX#4E27A2
RGBrgb(78, 39, 162)
HSLhsl(259, 61%, 39%)
HSVhsv(259, 76%, 64%)
CMYKcmyk(51.9%, 75.9%, 0%, 36.5%)
CIE-LABlab(28.59, 46.86, -59.77)
CIE-LCHlch(28.59, 75.95, 308.10°)
OKLaboklab(40.54% 0.0632 -0.1717)
OKLCHoklch(40.54% 0.183 290.2)
XYZxyz(10.3871, 5.6789, 34.7243)
Luminance0.0568 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E27A2 #7BA227
analogous
#273EA2 #4E27A2 #8C27A2
triadic
#4E27A2 #A24E27 #27A24E
tetradic
#4E27A2 #A2273E #7BA227 #27A28C
square
#4E27A2 #A2273E #7BA227 #27A28C
split-complementary
#4E27A2 #A28C27 #3EA227
monochromatic
#1F0F3F #361B71 #4E27A2 #6737CF #8D69DB

Accessibility & contrast

On white

9.83
#4E27A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#4E27A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E27A2
9.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E27A2#FFFFFF#000000##FFFFFF
##4E27A21.009.832.149.83
#FFFFFF9.831.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A6
Deuteranopia (green-blind)
#0041A0
Tritanopia (blue-blind)
#304963
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #4e27a2;
/* rgb */ color: rgb(78, 39, 162);
/* oklch */ color: oklch(40.5% 0.183 290.2);
Tailwind
colors: {
  custom: {
    50: '#8966bf',
    500: '#4e27a2',
    950: '#000000',
  },
}
SCSS
$custom: #4e27a2;
$custom-light: #8966bf;
$custom-dark: #000000;
JSON
{
  "hex": "#4e27a2",
  "rgb": {
    "r": 78,
    "g": 39,
    "b": 162
  },
  "hsl": {
    "h": 259.024,
    "s": 61.194,
    "l": 39.412
  },
  "oklch": {
    "l": 0.40538,
    "c": 0.18298,
    "h": 290.2
  },
  "luminance": 0.05679
}

Semantic roles & 50–950 ramp

primary
#4E27A2
secondary
#A3C164
accent
#E443B1
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4E27A2

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

Preview Lab → · Contrast checker → · Palette generator →

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