#4E27B0#4E27B0

#4E27B0 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.9% C 0.199 H 287.3°. Best body text is #FFFFFF at 9.37:1 contrast (WCAG AA passes).

Color values

HEX#4E27B0
RGBrgb(78, 39, 176)
HSLhsl(257, 64%, 42%)
HSVhsv(257, 78%, 69%)
CMYKcmyk(55.7%, 77.8%, 0%, 31%)
CIE-LABlab(29.92, 50.79, -66.00)
CIE-LCHlch(29.92, 83.28, 307.58°)
OKLaboklab(41.88% 0.0593 -0.19)
OKLCHoklch(41.88% 0.199 287.3)
XYZxyz(11.7015, 6.2047, 41.6469)
Luminance0.0621 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E27B0 #89B027
analogous
#2745B0 #4E27B0 #9227B0
triadic
#4E27B0 #B04E27 #27B04E
tetradic
#4E27B0 #B02745 #89B027 #27B092
square
#4E27B0 #B02745 #89B027 #27B092
split-complementary
#4E27B0 #B09227 #45B027
monochromatic
#22114C #381C7E #4E27B0 #6A40D5 #9172E0

Accessibility & contrast

On white

9.37
#4E27B0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#4E27B0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E27B0
9.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E27B0#FFFFFF#000000##FFFFFF
##4E27B01.009.372.249.37
#FFFFFF9.371.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB4
Deuteranopia (green-blind)
#0043AE
Tritanopia (blue-blind)
#234E6B
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4e27b0;
/* rgb */ color: rgb(78, 39, 176);
/* oklch */ color: oklch(41.9% 0.199 287.3);
Tailwind
colors: {
  custom: {
    50: '#8b66c9',
    500: '#4e27b0',
    950: '#000000',
  },
}
SCSS
$custom: #4e27b0;
$custom-light: #8b66c9;
$custom-dark: #000000;
JSON
{
  "hex": "#4e27b0",
  "rgb": {
    "r": 78,
    "g": 39,
    "b": 176
  },
  "hsl": {
    "h": 257.08,
    "s": 63.721,
    "l": 42.157
  },
  "oklch": {
    "l": 0.41879,
    "c": 0.199,
    "h": 287.3
  },
  "luminance": 0.06205
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4E27B0

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

Preview Lab → · Contrast checker → · Palette generator →

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