#4E27B4#4E27B4

#4E27B4 is a dark, highly saturated violet. Relative luminance 0.064; OKLCH L 42.3% C 0.204 H 286.6°. Best body text is #FFFFFF at 9.24:1 contrast (WCAG AA passes).

Color values

HEX#4E27B4
RGBrgb(78, 39, 180)
HSLhsl(257, 64%, 43%)
HSVhsv(257, 78%, 71%)
CMYKcmyk(56.7%, 78.3%, 0%, 29.4%)
CIE-LABlab(30.32, 51.91, -67.74)
CIE-LCHlch(30.32, 85.34, 307.46°)
OKLaboklab(42.27% 0.0581 -0.195)
OKLCHoklch(42.27% 0.204 286.6)
XYZxyz(12.1032, 6.3653, 43.7620)
Luminance0.0637 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E27B4 #8DB427
analogous
#2746B4 #4E27B4 #9527B4
triadic
#4E27B4 #B44E27 #27B44E
tetradic
#4E27B4 #B42746 #8DB427 #27B495
square
#4E27B4 #B42746 #8DB427 #27B495
split-complementary
#4E27B4 #B49527 #46B427
monochromatic
#22114F #381C82 #4E27B4 #6B42D6 #9274E1

Accessibility & contrast

On white

9.24
#4E27B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#4E27B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E27B4
9.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E27B4#FFFFFF#000000##FFFFFF
##4E27B41.009.242.279.24
#FFFFFF9.241.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB8
Deuteranopia (green-blind)
#0043B1
Tritanopia (blue-blind)
#1D506D
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4e27b4;
/* rgb */ color: rgb(78, 39, 180);
/* oklch */ color: oklch(42.3% 0.204 286.6);
Tailwind
colors: {
  custom: {
    50: '#8b66cc',
    500: '#4e27b4',
    950: '#000000',
  },
}
SCSS
$custom: #4e27b4;
$custom-light: #8b66cc;
$custom-dark: #000000;
JSON
{
  "hex": "#4e27b4",
  "rgb": {
    "r": 78,
    "g": 39,
    "b": 180
  },
  "hsl": {
    "h": 256.596,
    "s": 64.384,
    "l": 42.941
  },
  "oklch": {
    "l": 0.42271,
    "c": 0.20352,
    "h": 286.6
  },
  "luminance": 0.06366
}

Semantic roles & 50–950 ramp

primary
#4E27B4
secondary
#AFC86F
accent
#E740B9
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #4E27B4

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

Preview Lab → · Contrast checker → · Palette generator →

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