#4C27AD#4C27AD

#4C27AD is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.4% C 0.196 H 287.0°. Best body text is #FFFFFF at 9.54:1 contrast (WCAG AA passes).

Color values

HEX#4C27AD
RGBrgb(76, 39, 173)
HSLhsl(257, 63%, 42%)
HSVhsv(257, 77%, 68%)
CMYKcmyk(56.1%, 77.5%, 0%, 32.2%)
CIE-LABlab(29.42, 49.68, -65.04)
CIE-LCHlch(29.42, 81.84, 307.38°)
OKLaboklab(41.39% 0.0571 -0.1872)
OKLCHoklch(41.39% 0.196 287)
XYZxyz(11.2466, 6.0041, 40.0933)
Luminance0.0600 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C27AD #88AD27
analogous
#2745AD #4C27AD #8F27AD
triadic
#4C27AD #AD4C27 #27AD4C
tetradic
#4C27AD #AD2745 #88AD27 #27AD8F
square
#4C27AD #AD2745 #88AD27 #27AD8F
split-complementary
#4C27AD #AD8F27 #45AD27
monochromatic
#201049 #361C7B #4C27AD #673ED3 #8E70DF

Accessibility & contrast

On white

9.54
#4C27AD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#4C27AD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C27AD
9.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C27AD#FFFFFF#000000##FFFFFF
##4C27AD1.009.542.209.54
#FFFFFF9.541.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048B1
Deuteranopia (green-blind)
#0042AB
Tritanopia (blue-blind)
#204D69
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #4c27ad;
/* rgb */ color: rgb(76, 39, 173);
/* oklch */ color: oklch(41.4% 0.196 287.0);
Tailwind
colors: {
  custom: {
    50: '#8966c7',
    500: '#4c27ad',
    950: '#000000',
  },
}
SCSS
$custom: #4c27ad;
$custom-light: #8966c7;
$custom-dark: #000000;
JSON
{
  "hex": "#4c27ad",
  "rgb": {
    "r": 76,
    "g": 39,
    "b": 173
  },
  "hsl": {
    "h": 256.567,
    "s": 63.208,
    "l": 41.569
  },
  "oklch": {
    "l": 0.41392,
    "c": 0.19572,
    "h": 287
  },
  "luminance": 0.06005
}

Semantic roles & 50–950 ramp

primary
#4C27AD
secondary
#ACC66A
accent
#E642B9
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #4C27AD

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

Preview Lab → · Contrast checker → · Palette generator →

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