#4C27AE#4C27AE

#4C27AE is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.5% C 0.197 H 286.8°. Best body text is #FFFFFF at 9.51:1 contrast (WCAG AA passes).

Color values

HEX#4C27AE
RGBrgb(76, 39, 174)
HSLhsl(256, 63%, 42%)
HSVhsv(256, 78%, 68%)
CMYKcmyk(56.3%, 77.6%, 0%, 31.8%)
CIE-LABlab(29.52, 49.97, -65.47)
CIE-LCHlch(29.52, 82.36, 307.35°)
OKLaboklab(41.49% 0.0568 -0.1885)
OKLCHoklch(41.49% 0.197 286.8)
XYZxyz(11.3437, 6.0429, 40.6049)
Luminance0.0604 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C27AE #89AE27
analogous
#2746AE #4C27AE #8F27AE
triadic
#4C27AE #AE4C27 #27AE4C
tetradic
#4C27AE #AE2746 #89AE27 #27AE8F
square
#4C27AE #AE2746 #89AE27 #27AE8F
split-complementary
#4C27AE #AE8F27 #46AE27
monochromatic
#20114A #361C7C #4C27AE #673ED4 #8F70DF

Accessibility & contrast

On white

9.51
#4C27AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#4C27AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C27AE
9.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C27AE#FFFFFF#000000##FFFFFF
##4C27AE1.009.512.219.51
#FFFFFF9.511.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049B2
Deuteranopia (green-blind)
#0042AC
Tritanopia (blue-blind)
#1F4E6A
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4c27ae;
/* rgb */ color: rgb(76, 39, 174);
/* oklch */ color: oklch(41.5% 0.197 286.8);
Tailwind
colors: {
  custom: {
    50: '#8966c7',
    500: '#4c27ae',
    950: '#000000',
  },
}
SCSS
$custom: #4c27ae;
$custom-light: #8966c7;
$custom-dark: #000000;
JSON
{
  "hex": "#4c27ae",
  "rgb": {
    "r": 76,
    "g": 39,
    "b": 174
  },
  "hsl": {
    "h": 256.444,
    "s": 63.38,
    "l": 41.765
  },
  "oklch": {
    "l": 0.4149,
    "c": 0.19686,
    "h": 286.8
  },
  "luminance": 0.06044
}

Semantic roles & 50–950 ramp

primary
#4C27AE
secondary
#ADC66B
accent
#E641B9
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #4C27AE

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

Preview Lab → · Contrast checker → · Palette generator →

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