#4C27AA#4C27AA

#4C27AA is a dark, vivid violet. Relative luminance 0.059; OKLCH L 41.1% C 0.192 H 287.5°. Best body text is #FFFFFF at 9.64:1 contrast (WCAG AA passes).

Color values

HEX#4C27AA
RGBrgb(76, 39, 170)
HSLhsl(257, 63%, 41%)
HSVhsv(257, 77%, 67%)
CMYKcmyk(55.3%, 77.1%, 0%, 33.3%)
CIE-LABlab(29.13, 48.83, -63.71)
CIE-LCHlch(29.13, 80.28, 307.47°)
OKLaboklab(41.1% 0.058 -0.1833)
OKLCHoklch(41.1% 0.192 287.5)
XYZxyz(10.9596, 5.8892, 38.5817)
Luminance0.0589 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C27AA #85AA27
analogous
#2743AA #4C27AA #8D27AA
triadic
#4C27AA #AA4C27 #27AA4C
tetradic
#4C27AA #AA2743 #85AA27 #27AA8D
square
#4C27AA #AA2743 #85AA27 #27AA8D
split-complementary
#4C27AA #AA8D27 #43AA27
monochromatic
#1F1046 #361C78 #4C27AA #663CD2 #8D6EDE

Accessibility & contrast

On white

9.64
#4C27AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#4C27AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C27AA
9.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C27AA#FFFFFF#000000##FFFFFF
##4C27AA1.009.642.189.64
#FFFFFF9.641.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048AE
Deuteranopia (green-blind)
#0041A8
Tritanopia (blue-blind)
#244C67
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #4c27aa;
/* rgb */ color: rgb(76, 39, 170);
/* oklch */ color: oklch(41.1% 0.192 287.5);
Tailwind
colors: {
  custom: {
    50: '#8966c4',
    500: '#4c27aa',
    950: '#000000',
  },
}
SCSS
$custom: #4c27aa;
$custom-light: #8966c4;
$custom-dark: #000000;
JSON
{
  "hex": "#4c27aa",
  "rgb": {
    "r": 76,
    "g": 39,
    "b": 170
  },
  "hsl": {
    "h": 256.947,
    "s": 62.679,
    "l": 40.98
  },
  "oklch": {
    "l": 0.411,
    "c": 0.19228,
    "h": 287.5
  },
  "luminance": 0.0589
}

Semantic roles & 50–950 ramp

primary
#4C27AA
secondary
#AAC469
accent
#E642B8
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0D0613
muted
#7D7A82

Preview Lab

Preview with #4C27AA

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

Preview Lab → · Contrast checker → · Palette generator →

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