#4E27A0#4E27A0

#4E27A0 is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.4% C 0.181 H 290.7°. Best body text is #FFFFFF at 9.90:1 contrast (WCAG AA passes).

Color values

HEX#4E27A0
RGBrgb(78, 39, 160)
HSLhsl(259, 61%, 39%)
HSVhsv(259, 76%, 63%)
CMYKcmyk(51.2%, 75.6%, 0%, 37.3%)
CIE-LABlab(28.40, 46.30, -58.86)
CIE-LCHlch(28.40, 74.89, 308.19°)
OKLaboklab(40.35% 0.0637 -0.169)
OKLCHoklch(40.35% 0.181 290.7)
XYZxyz(10.2108, 5.6084, 33.7954)
Luminance0.0561 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E27A0 #79A027
analogous
#273DA0 #4E27A0 #8B27A0
triadic
#4E27A0 #A04E27 #27A04E
tetradic
#4E27A0 #A0273D #79A027 #27A08B
square
#4E27A0 #A0273D #79A027 #27A08B
split-complementary
#4E27A0 #A08B27 #3DA027
monochromatic
#1E0F3E #361B6F #4E27A0 #6736CE #8C67DA

Accessibility & contrast

On white

9.90
#4E27A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#4E27A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E27A0
9.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E27A0#FFFFFF#000000##FFFFFF
##4E27A01.009.902.129.90
#FFFFFF9.901.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A3
Deuteranopia (green-blind)
#00409E
Tritanopia (blue-blind)
#314862
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #4e27a0;
/* rgb */ color: rgb(78, 39, 160);
/* oklch */ color: oklch(40.4% 0.181 290.7);
Tailwind
colors: {
  custom: {
    50: '#8865bd',
    500: '#4e27a0',
    950: '#000000',
  },
}
SCSS
$custom: #4e27a0;
$custom-light: #8865bd;
$custom-dark: #000000;
JSON
{
  "hex": "#4e27a0",
  "rgb": {
    "r": 78,
    "g": 39,
    "b": 160
  },
  "hsl": {
    "h": 259.339,
    "s": 60.804,
    "l": 39.02
  },
  "oklch": {
    "l": 0.40351,
    "c": 0.18067,
    "h": 290.7
  },
  "luminance": 0.05609
}

Semantic roles & 50–950 ramp

primary
#4E27A0
secondary
#A2C063
accent
#E444B0
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4E27A0

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

Preview Lab → · Contrast checker → · Palette generator →

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