#4E27BA#4E27BA

#4E27BA is a dark, highly saturated violet. Relative luminance 0.066; OKLCH L 42.9% C 0.210 H 285.5°. Best body text is #FFFFFF at 9.04:1 contrast (WCAG AA passes).

Color values

HEX#4E27BA
RGBrgb(78, 39, 186)
HSLhsl(256, 65%, 44%)
HSVhsv(256, 79%, 73%)
CMYKcmyk(58.1%, 79%, 0%, 27.1%)
CIE-LABlab(30.91, 53.59, -70.32)
CIE-LCHlch(30.91, 88.41, 307.31°)
OKLaboklab(42.87% 0.0563 -0.2026)
OKLCHoklch(42.87% 0.21 285.5)
XYZxyz(12.7276, 6.6151, 47.0510)
Luminance0.0662 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E27BA #93BA27
analogous
#274ABA #4E27BA #9827BA
triadic
#4E27BA #BA4E27 #27BA4E
tetradic
#4E27BA #BA274A #93BA27 #27BA98
square
#4E27BA #BA274A #93BA27 #27BA98
split-complementary
#4E27BA #BA9827 #4ABA27
monochromatic
#241255 #391C87 #4E27BA #6D46D8 #9579E3

Accessibility & contrast

On white

9.04
#4E27BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#4E27BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E27BA
9.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E27BA#FFFFFF#000000##FFFFFF
##4E27BA1.009.042.329.04
#FFFFFF9.041.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DBE
Deuteranopia (green-blind)
#0044B7
Tritanopia (blue-blind)
#135271
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #4e27ba;
/* rgb */ color: rgb(78, 39, 186);
/* oklch */ color: oklch(42.9% 0.210 285.5);
Tailwind
colors: {
  custom: {
    50: '#8c67d0',
    500: '#4e27ba',
    950: '#000000',
  },
}
SCSS
$custom: #4e27ba;
$custom-light: #8c67d0;
$custom-dark: #000000;
JSON
{
  "hex": "#4e27ba",
  "rgb": {
    "r": 78,
    "g": 39,
    "b": 186
  },
  "hsl": {
    "h": 255.918,
    "s": 65.333,
    "l": 44.118
  },
  "oklch": {
    "l": 0.42867,
    "c": 0.21026,
    "h": 285.5
  },
  "luminance": 0.06616
}

Semantic roles & 50–950 ramp

primary
#4E27BA
secondary
#B3CB72
accent
#E840BC
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0D0614
muted
#7E7A82

Preview Lab

Preview with #4E27BA

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

Preview Lab → · Contrast checker → · Palette generator →

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