#4E27A3#4E27A3

#4E27A3 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.6% C 0.184 H 290.0°. Best body text is #FFFFFF at 9.80:1 contrast (WCAG AA passes).

Color values

HEX#4E27A3
RGBrgb(78, 39, 163)
HSLhsl(259, 61%, 40%)
HSVhsv(259, 76%, 64%)
CMYKcmyk(52.1%, 76.1%, 0%, 36.1%)
CIE-LABlab(28.68, 47.14, -60.22)
CIE-LCHlch(28.68, 76.48, 308.06°)
OKLaboklab(40.63% 0.0629 -0.173)
OKLCHoklch(40.63% 0.184 290)
XYZxyz(10.4764, 5.7146, 35.1943)
Luminance0.0571 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E27A3 #7CA327
analogous
#273EA3 #4E27A3 #8C27A3
triadic
#4E27A3 #A34E27 #27A34E
tetradic
#4E27A3 #A3273E #7CA327 #27A38C
square
#4E27A3 #A3273E #7CA327 #27A38C
split-complementary
#4E27A3 #A38C27 #3EA327
monochromatic
#1F0F40 #361B72 #4E27A3 #6738CF #8D69DB

Accessibility & contrast

On white

9.80
#4E27A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E27A3
9.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E27A3#FFFFFF#000000##FFFFFF
##4E27A31.009.802.149.80
#FFFFFF9.801.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A7
Deuteranopia (green-blind)
#0041A1
Tritanopia (blue-blind)
#2F4963
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4e27a3;
/* rgb */ color: rgb(78, 39, 163);
/* oklch */ color: oklch(40.6% 0.184 290.0);
Tailwind
colors: {
  custom: {
    50: '#8966bf',
    500: '#4e27a3',
    950: '#000000',
  },
}
SCSS
$custom: #4e27a3;
$custom-light: #8966bf;
$custom-dark: #000000;
JSON
{
  "hex": "#4e27a3",
  "rgb": {
    "r": 78,
    "g": 39,
    "b": 163
  },
  "hsl": {
    "h": 258.871,
    "s": 61.386,
    "l": 39.608
  },
  "oklch": {
    "l": 0.40632,
    "c": 0.18413,
    "h": 290
  },
  "luminance": 0.05715
}

Semantic roles & 50–950 ramp

primary
#4E27A3
secondary
#A4C164
accent
#E443B2
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4E27A3

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

Preview Lab → · Contrast checker → · Palette generator →

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