#4E27A8#4E27A8

#4E27A8 is a dark, vivid violet. Relative luminance 0.059; OKLCH L 41.1% C 0.190 H 288.9°. Best body text is #FFFFFF at 9.63:1 contrast (WCAG AA passes).

Color values

HEX#4E27A8
RGBrgb(78, 39, 168)
HSLhsl(258, 62%, 41%)
HSVhsv(258, 77%, 66%)
CMYKcmyk(53.6%, 76.8%, 0%, 34.1%)
CIE-LABlab(29.15, 48.55, -62.47)
CIE-LCHlch(29.15, 79.11, 307.85°)
OKLaboklab(41.11% 0.0616 -0.1796)
OKLCHoklch(41.11% 0.19 288.9)
XYZxyz(10.9332, 5.8974, 37.6004)
Luminance0.0590 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E27A8 #81A827
analogous
#2740A8 #4E27A8 #8F27A8
triadic
#4E27A8 #A84E27 #27A84E
tetradic
#4E27A8 #A82740 #81A827 #27A88F
square
#4E27A8 #A82740 #81A827 #27A88F
split-complementary
#4E27A8 #A88F27 #40A827
monochromatic
#201045 #371B76 #4E27A8 #683BD1 #8E6CDD

Accessibility & contrast

On white

9.63
#4E27A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#4E27A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E27A8
9.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E27A8#FFFFFF#000000##FFFFFF
##4E27A81.009.632.189.63
#FFFFFF9.631.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047AC
Deuteranopia (green-blind)
#0041A6
Tritanopia (blue-blind)
#2B4B66
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #4e27a8;
/* rgb */ color: rgb(78, 39, 168);
/* oklch */ color: oklch(41.1% 0.190 288.9);
Tailwind
colors: {
  custom: {
    50: '#8966c3',
    500: '#4e27a8',
    950: '#000000',
  },
}
SCSS
$custom: #4e27a8;
$custom-light: #8966c3;
$custom-dark: #000000;
JSON
{
  "hex": "#4e27a8",
  "rgb": {
    "r": 78,
    "g": 39,
    "b": 168
  },
  "hsl": {
    "h": 258.14,
    "s": 62.319,
    "l": 40.588
  },
  "oklch": {
    "l": 0.41106,
    "c": 0.18988,
    "h": 288.9
  },
  "luminance": 0.05898
}

Semantic roles & 50–950 ramp

primary
#4E27A8
secondary
#A8C367
accent
#E542B4
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #4E27A8

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

Preview Lab → · Contrast checker → · Palette generator →

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