#4C27BA#4C27BA

#4C27BA is a dark, highly saturated violet. Relative luminance 0.065; OKLCH L 42.7% C 0.210 H 284.7°. Best body text is #FFFFFF at 9.10:1 contrast (WCAG AA passes).

Color values

HEX#4C27BA
RGBrgb(76, 39, 186)
HSLhsl(255, 65%, 44%)
HSVhsv(255, 79%, 73%)
CMYKcmyk(59.1%, 79%, 0%, 27.1%)
CIE-LABlab(30.72, 53.35, -70.65)
CIE-LCHlch(30.72, 88.53, 307.06°)
OKLaboklab(42.68% 0.0533 -0.2036)
OKLCHoklch(42.68% 0.21 284.7)
XYZxyz(12.5662, 6.5319, 47.0435)
Luminance0.0653 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C27BA #95BA27
analogous
#274CBA #4C27BA #9627BA
triadic
#4C27BA #BA4C27 #27BA4C
tetradic
#4C27BA #BA274C #95BA27 #27BA96
square
#4C27BA #BA274C #95BA27 #27BA96
split-complementary
#4C27BA #BA9627 #4CBA27
monochromatic
#231255 #371C87 #4C27BA #6B46D8 #9379E3

Accessibility & contrast

On white

9.10
#4C27BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#4C27BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C27BA
9.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C27BA#FFFFFF#000000##FFFFFF
##4C27BA1.009.102.319.10
#FFFFFF9.101.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CBE
Deuteranopia (green-blind)
#0044B7
Tritanopia (blue-blind)
#055371
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #4c27ba;
/* rgb */ color: rgb(76, 39, 186);
/* oklch */ color: oklch(42.7% 0.210 284.7);
Tailwind
colors: {
  custom: {
    50: '#8b67d0',
    500: '#4c27ba',
    950: '#000000',
  },
}
SCSS
$custom: #4c27ba;
$custom-light: #8b67d0;
$custom-dark: #000000;
JSON
{
  "hex": "#4c27ba",
  "rgb": {
    "r": 76,
    "g": 39,
    "b": 186
  },
  "hsl": {
    "h": 255.102,
    "s": 65.333,
    "l": 44.118
  },
  "oklch": {
    "l": 0.42682,
    "c": 0.21046,
    "h": 284.7
  },
  "luminance": 0.06533
}

Semantic roles & 50–950 ramp

primary
#4C27BA
secondary
#B4CB72
accent
#E840BE
background
#F9F6FD
surface
#F1EBFA
border
#CBC6D3
text
#0D0614
muted
#7E7A83

Preview Lab

Preview with #4C27BA

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

Preview Lab → · Contrast checker → · Palette generator →

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