#4E27A6#4E27A6

#4E27A6 is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.9% C 0.188 H 289.3°. Best body text is #FFFFFF at 9.70:1 contrast (WCAG AA passes).

Color values

HEX#4E27A6
RGBrgb(78, 39, 166)
HSLhsl(258, 62%, 40%)
HSVhsv(258, 77%, 65%)
CMYKcmyk(53%, 76.5%, 0%, 34.9%)
CIE-LABlab(28.96, 47.99, -61.57)
CIE-LCHlch(28.96, 78.06, 307.93°)
OKLaboklab(40.92% 0.0621 -0.177)
OKLCHoklch(40.92% 0.188 289.3)
XYZxyz(10.7483, 5.8234, 36.6267)
Luminance0.0582 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E27A6 #7FA627
analogous
#2740A6 #4E27A6 #8D27A6
triadic
#4E27A6 #A64E27 #27A64E
tetradic
#4E27A6 #A62740 #7FA627 #27A68D
square
#4E27A6 #A62740 #7FA627 #27A68D
split-complementary
#4E27A6 #A68D27 #40A627
monochromatic
#1F1043 #371B74 #4E27A6 #683AD1 #8E6BDC

Accessibility & contrast

On white

9.70
#4E27A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#4E27A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E27A6
9.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E27A6#FFFFFF#000000##FFFFFF
##4E27A61.009.702.169.70
#FFFFFF9.701.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047AA
Deuteranopia (green-blind)
#0041A4
Tritanopia (blue-blind)
#2D4A65
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4e27a6;
/* rgb */ color: rgb(78, 39, 166);
/* oklch */ color: oklch(40.9% 0.188 289.3);
Tailwind
colors: {
  custom: {
    50: '#8966c2',
    500: '#4e27a6',
    950: '#000000',
  },
}
SCSS
$custom: #4e27a6;
$custom-light: #8966c2;
$custom-dark: #000000;
JSON
{
  "hex": "#4e27a6",
  "rgb": {
    "r": 78,
    "g": 39,
    "b": 166
  },
  "hsl": {
    "h": 258.425,
    "s": 61.951,
    "l": 40.196
  },
  "oklch": {
    "l": 0.40916,
    "c": 0.18759,
    "h": 289.3
  },
  "luminance": 0.05824
}

Semantic roles & 50–950 ramp

primary
#4E27A6
secondary
#A6C366
accent
#E543B3
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0D0612
muted
#7D7A81

Preview Lab

Preview with #4E27A6

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

Preview Lab → · Contrast checker → · Palette generator →

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