#4C27A9#4C27A9

#4C27A9 is a dark, vivid violet. Relative luminance 0.059; OKLCH L 41.0% C 0.191 H 287.7°. Best body text is #FFFFFF at 9.68:1 contrast (WCAG AA passes).

Color values

HEX#4C27A9
RGBrgb(76, 39, 169)
HSLhsl(257, 63%, 41%)
HSVhsv(257, 77%, 66%)
CMYKcmyk(55%, 76.9%, 0%, 33.7%)
CIE-LABlab(29.03, 48.55, -63.27)
CIE-LCHlch(29.03, 79.75, 307.50°)
OKLaboklab(41% 0.0583 -0.182)
OKLCHoklch(41% 0.191 287.7)
XYZxyz(10.8653, 5.8515, 38.0854)
Luminance0.0585 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C27A9 #84A927
analogous
#2743A9 #4C27A9 #8D27A9
triadic
#4C27A9 #A94C27 #27A94C
tetradic
#4C27A9 #A92743 #84A927 #27A98D
square
#4C27A9 #A92743 #84A927 #27A98D
split-complementary
#4C27A9 #A98D27 #43A927
monochromatic
#1F1046 #361C77 #4C27A9 #663BD2 #8D6DDD

Accessibility & contrast

On white

9.68
#4C27A9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#4C27A9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C27A9
9.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C27A9#FFFFFF#000000##FFFFFF
##4C27A91.009.682.179.68
#FFFFFF9.681.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047AD
Deuteranopia (green-blind)
#0041A7
Tritanopia (blue-blind)
#254C67
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4c27a9;
/* rgb */ color: rgb(76, 39, 169);
/* oklch */ color: oklch(41.0% 0.191 287.7);
Tailwind
colors: {
  custom: {
    50: '#8866c4',
    500: '#4c27a9',
    950: '#000000',
  },
}
SCSS
$custom: #4c27a9;
$custom-light: #8866c4;
$custom-dark: #000000;
JSON
{
  "hex": "#4c27a9",
  "rgb": {
    "r": 76,
    "g": 39,
    "b": 169
  },
  "hsl": {
    "h": 257.077,
    "s": 62.5,
    "l": 40.784
  },
  "oklch": {
    "l": 0.41003,
    "c": 0.19113,
    "h": 287.7
  },
  "luminance": 0.05852
}

Semantic roles & 50–950 ramp

primary
#4C27A9
secondary
#AAC468
accent
#E642B7
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0D0613
muted
#7D7A82

Preview Lab

Preview with #4C27A9

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

Preview Lab → · Contrast checker → · Palette generator →

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