#4C27AB#4C27AB

#4C27AB is a dark, vivid violet. Relative luminance 0.059; OKLCH L 41.2% C 0.193 H 287.3°. Best body text is #FFFFFF at 9.61:1 contrast (WCAG AA passes).

Color values

HEX#4C27AB
RGBrgb(76, 39, 171)
HSLhsl(257, 63%, 41%)
HSVhsv(257, 77%, 67%)
CMYKcmyk(55.6%, 77.2%, 0%, 32.9%)
CIE-LABlab(29.23, 49.12, -64.16)
CIE-LCHlch(29.23, 80.80, 307.44°)
OKLaboklab(41.2% 0.0577 -0.1846)
OKLCHoklch(41.2% 0.193 287.3)
XYZxyz(11.0545, 5.9272, 39.0818)
Luminance0.0593 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C27AB #86AB27
analogous
#2744AB #4C27AB #8E27AB
triadic
#4C27AB #AB4C27 #27AB4C
tetradic
#4C27AB #AB2744 #86AB27 #27AB8E
square
#4C27AB #AB2744 #86AB27 #27AB8E
split-complementary
#4C27AB #AB8E27 #44AB27
monochromatic
#201047 #361C79 #4C27AB #673DD3 #8E6EDE

Accessibility & contrast

On white

9.61
#4C27AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#4C27AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C27AB
9.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C27AB#FFFFFF#000000##FFFFFF
##4C27AB1.009.612.199.61
#FFFFFF9.611.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048AF
Deuteranopia (green-blind)
#0041A9
Tritanopia (blue-blind)
#224D68
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #4c27ab;
/* rgb */ color: rgb(76, 39, 171);
/* oklch */ color: oklch(41.2% 0.193 287.3);
Tailwind
colors: {
  custom: {
    50: '#8966c5',
    500: '#4c27ab',
    950: '#000000',
  },
}
SCSS
$custom: #4c27ab;
$custom-light: #8966c5;
$custom-dark: #000000;
JSON
{
  "hex": "#4c27ab",
  "rgb": {
    "r": 76,
    "g": 39,
    "b": 171
  },
  "hsl": {
    "h": 256.818,
    "s": 62.857,
    "l": 41.176
  },
  "oklch": {
    "l": 0.41197,
    "c": 0.19343,
    "h": 287.3
  },
  "luminance": 0.05928
}

Semantic roles & 50–950 ramp

primary
#4C27AB
secondary
#ABC569
accent
#E642B8
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #4C27AB

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

Preview Lab → · Contrast checker → · Palette generator →

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