#4C27BB#4C27BB

#4C27BB is a dark, highly saturated violet. Relative luminance 0.066; OKLCH L 42.8% C 0.212 H 284.5°. Best body text is #FFFFFF at 9.07:1 contrast (WCAG AA passes).

Color values

HEX#4C27BB
RGBrgb(76, 39, 187)
HSLhsl(255, 65%, 44%)
HSVhsv(255, 79%, 73%)
CMYKcmyk(59.4%, 79.1%, 0%, 26.7%)
CIE-LABlab(30.82, 53.63, -71.08)
CIE-LCHlch(30.82, 89.04, 307.04°)
OKLaboklab(42.78% 0.053 -0.2048)
OKLCHoklch(42.78% 0.212 284.5)
XYZxyz(12.6729, 6.5746, 47.6053)
Luminance0.0658 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C27BB #96BB27
analogous
#274CBB #4C27BB #9627BB
triadic
#4C27BB #BB4C27 #27BB4C
tetradic
#4C27BB #BB274C #96BB27 #27BB96
square
#4C27BB #BB274C #96BB27 #27BB96
split-complementary
#4C27BB #BB9627 #4CBB27
monochromatic
#231256 #371C88 #4C27BB #6B47D9 #9479E3

Accessibility & contrast

On white

9.07
#4C27BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#4C27BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C27BB
9.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C27BB#FFFFFF#000000##FFFFFF
##4C27BB1.009.072.329.07
#FFFFFF9.071.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DBF
Deuteranopia (green-blind)
#0044B8
Tritanopia (blue-blind)
#015371
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #4c27bb;
/* rgb */ color: rgb(76, 39, 187);
/* oklch */ color: oklch(42.8% 0.212 284.5);
Tailwind
colors: {
  custom: {
    50: '#8c67d1',
    500: '#4c27bb',
    950: '#000000',
  },
}
SCSS
$custom: #4c27bb;
$custom-light: #8c67d1;
$custom-dark: #000000;
JSON
{
  "hex": "#4c27bb",
  "rgb": {
    "r": 76,
    "g": 39,
    "b": 187
  },
  "hsl": {
    "h": 255,
    "s": 65.487,
    "l": 44.314
  },
  "oklch": {
    "l": 0.42783,
    "c": 0.21157,
    "h": 284.5
  },
  "luminance": 0.06575
}

Semantic roles & 50–950 ramp

primary
#4C27BB
secondary
#B5CB73
accent
#E83FBE
background
#F9F6FD
surface
#F2EBFA
border
#CCC6D3
text
#0D0614
muted
#7E7A83

Preview Lab

Preview with #4C27BB

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

Preview Lab → · Contrast checker → · Palette generator →

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