#4E27A7#4E27A7

#4E27A7 is a dark, vivid violet. Relative luminance 0.059; OKLCH L 41.0% C 0.189 H 289.1°. Best body text is #FFFFFF at 9.67:1 contrast (WCAG AA passes).

Color values

HEX#4E27A7
RGBrgb(78, 39, 167)
HSLhsl(258, 62%, 40%)
HSVhsv(258, 77%, 65%)
CMYKcmyk(53.3%, 76.6%, 0%, 34.5%)
CIE-LABlab(29.06, 48.27, -62.02)
CIE-LCHlch(29.06, 78.59, 307.89°)
OKLaboklab(41.01% 0.0619 -0.1783)
OKLCHoklch(41.01% 0.189 289.1)
XYZxyz(10.8404, 5.8603, 37.1117)
Luminance0.0586 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E27A7 #80A727
analogous
#2740A7 #4E27A7 #8E27A7
triadic
#4E27A7 #A74E27 #27A74E
tetradic
#4E27A7 #A72740 #80A727 #27A78E
square
#4E27A7 #A72740 #80A727 #27A78E
split-complementary
#4E27A7 #A78E27 #40A727
monochromatic
#201044 #371B75 #4E27A7 #683AD1 #8E6CDD

Accessibility & contrast

On white

9.67
#4E27A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#4E27A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E27A7
9.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E27A7#FFFFFF#000000##FFFFFF
##4E27A71.009.672.179.67
#FFFFFF9.671.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047AB
Deuteranopia (green-blind)
#0041A5
Tritanopia (blue-blind)
#2C4B66
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4e27a7;
/* rgb */ color: rgb(78, 39, 167);
/* oklch */ color: oklch(41.0% 0.189 289.1);
Tailwind
colors: {
  custom: {
    50: '#8966c2',
    500: '#4e27a7',
    950: '#000000',
  },
}
SCSS
$custom: #4e27a7;
$custom-light: #8966c2;
$custom-dark: #000000;
JSON
{
  "hex": "#4e27a7",
  "rgb": {
    "r": 78,
    "g": 39,
    "b": 167
  },
  "hsl": {
    "h": 258.281,
    "s": 62.136,
    "l": 40.392
  },
  "oklch": {
    "l": 0.41011,
    "c": 0.18875,
    "h": 289.1
  },
  "luminance": 0.05861
}

Semantic roles & 50–950 ramp

primary
#4E27A7
secondary
#A7C367
accent
#E543B4
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #4E27A7

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

Preview Lab → · Contrast checker → · Palette generator →

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