#4C27B6#4C27B6

#4C27B6 is a dark, highly saturated violet. Relative luminance 0.064; OKLCH L 42.3% C 0.206 H 285.3°. Best body text is #FFFFFF at 9.24:1 contrast (WCAG AA passes).

Color values

HEX#4C27B6
RGBrgb(76, 39, 182)
HSLhsl(256, 65%, 43%)
HSVhsv(256, 79%, 71%)
CMYKcmyk(58.2%, 78.6%, 0%, 28.6%)
CIE-LABlab(30.31, 52.23, -68.94)
CIE-LCHlch(30.31, 86.49, 307.14°)
OKLaboklab(42.28% 0.0545 -0.1986)
OKLCHoklch(42.28% 0.206 285.3)
XYZxyz(12.1469, 6.3642, 44.8352)
Luminance0.0636 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C27B6 #91B627
analogous
#274AB6 #4C27B6 #9327B6
triadic
#4C27B6 #B64C27 #27B64C
tetradic
#4C27B6 #B6274A #91B627 #27B693
square
#4C27B6 #B6274A #91B627 #27B693
split-complementary
#4C27B6 #B69327 #4AB627
monochromatic
#221151 #371C84 #4C27B6 #6A43D7 #9276E2

Accessibility & contrast

On white

9.24
#4C27B6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#4C27B6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C27B6
9.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C27B6#FFFFFF#000000##FFFFFF
##4C27B61.009.242.279.24
#FFFFFF9.241.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BBA
Deuteranopia (green-blind)
#0043B3
Tritanopia (blue-blind)
#11516E
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4c27b6;
/* rgb */ color: rgb(76, 39, 182);
/* oklch */ color: oklch(42.3% 0.206 285.3);
Tailwind
colors: {
  custom: {
    50: '#8b66cd',
    500: '#4c27b6',
    950: '#000000',
  },
}
SCSS
$custom: #4c27b6;
$custom-light: #8b66cd;
$custom-dark: #000000;
JSON
{
  "hex": "#4c27b6",
  "rgb": {
    "r": 76,
    "g": 39,
    "b": 182
  },
  "hsl": {
    "h": 255.524,
    "s": 64.706,
    "l": 43.333
  },
  "oklch": {
    "l": 0.42281,
    "c": 0.20595,
    "h": 285.3
  },
  "luminance": 0.06365
}

Semantic roles & 50–950 ramp

primary
#4C27B6
secondary
#B2C970
accent
#E840BC
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0614
muted
#7E7A82

Preview Lab

Preview with #4C27B6

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

Preview Lab → · Contrast checker → · Palette generator →

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