#4E27B1#4E27B1

#4E27B1 is a dark, highly saturated violet. Relative luminance 0.062; OKLCH L 42.0% C 0.200 H 287.1°. Best body text is #FFFFFF at 9.34:1 contrast (WCAG AA passes).

Color values

HEX#4E27B1
RGBrgb(78, 39, 177)
HSLhsl(257, 64%, 42%)
HSVhsv(257, 78%, 69%)
CMYKcmyk(55.9%, 78%, 0%, 30.6%)
CIE-LABlab(30.02, 51.07, -66.44)
CIE-LCHlch(30.02, 83.80, 307.55°)
OKLaboklab(41.98% 0.059 -0.1912)
OKLCHoklch(41.98% 0.2 287.1)
XYZxyz(11.8008, 6.2444, 42.1699)
Luminance0.0624 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E27B1 #8AB127
analogous
#2745B1 #4E27B1 #9327B1
triadic
#4E27B1 #B14E27 #27B14E
tetradic
#4E27B1 #B12745 #8AB127 #27B193
square
#4E27B1 #B12745 #8AB127 #27B193
split-complementary
#4E27B1 #B19327 #45B127
monochromatic
#22114D #381C7F #4E27B1 #6A40D5 #9172E0

Accessibility & contrast

On white

9.34
#4E27B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#4E27B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E27B1
9.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E27B1#FFFFFF#000000##FFFFFF
##4E27B11.009.342.259.34
#FFFFFF9.341.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB5
Deuteranopia (green-blind)
#0043AE
Tritanopia (blue-blind)
#214F6B
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4e27b1;
/* rgb */ color: rgb(78, 39, 177);
/* oklch */ color: oklch(42.0% 0.200 287.1);
Tailwind
colors: {
  custom: {
    50: '#8b66ca',
    500: '#4e27b1',
    950: '#000000',
  },
}
SCSS
$custom: #4e27b1;
$custom-light: #8b66ca;
$custom-dark: #000000;
JSON
{
  "hex": "#4e27b1",
  "rgb": {
    "r": 78,
    "g": 39,
    "b": 177
  },
  "hsl": {
    "h": 256.957,
    "s": 63.889,
    "l": 42.353
  },
  "oklch": {
    "l": 0.41977,
    "c": 0.20013,
    "h": 287.1
  },
  "luminance": 0.06245
}

Semantic roles & 50–950 ramp

primary
#4E27B1
secondary
#AEC76D
accent
#E741B8
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #4E27B1

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

Preview Lab → · Contrast checker → · Palette generator →

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