#4C27B2#4C27B2

#4C27B2 is a dark, highly saturated violet. Relative luminance 0.062; OKLCH L 41.9% C 0.201 H 286.0°. Best body text is #FFFFFF at 9.37:1 contrast (WCAG AA passes).

Color values

HEX#4C27B2
RGBrgb(76, 39, 178)
HSLhsl(256, 64%, 43%)
HSVhsv(256, 78%, 70%)
CMYKcmyk(57.3%, 78.1%, 0%, 30.2%)
CIE-LABlab(29.91, 51.10, -67.22)
CIE-LCHlch(29.91, 84.43, 307.24°)
OKLaboklab(41.88% 0.0557 -0.1936)
OKLCHoklch(41.88% 0.201 286)
XYZxyz(11.7395, 6.2012, 42.6892)
Luminance0.0620 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C27B2 #8DB227
analogous
#2748B2 #4C27B2 #9127B2
triadic
#4C27B2 #B24C27 #27B24C
tetradic
#4C27B2 #B22748 #8DB227 #27B291
square
#4C27B2 #B22748 #8DB227 #27B291
split-complementary
#4C27B2 #B29127 #48B227
monochromatic
#21114E #371C80 #4C27B2 #6841D5 #9073E0

Accessibility & contrast

On white

9.37
#4C27B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#4C27B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C27B2
9.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C27B2#FFFFFF#000000##FFFFFF
##4C27B21.009.372.249.37
#FFFFFF9.371.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB6
Deuteranopia (green-blind)
#0042AF
Tritanopia (blue-blind)
#194F6C
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4c27b2;
/* rgb */ color: rgb(76, 39, 178);
/* oklch */ color: oklch(41.9% 0.201 286.0);
Tailwind
colors: {
  custom: {
    50: '#8a66ca',
    500: '#4c27b2',
    950: '#000000',
  },
}
SCSS
$custom: #4c27b2;
$custom-light: #8a66ca;
$custom-dark: #000000;
JSON
{
  "hex": "#4c27b2",
  "rgb": {
    "r": 76,
    "g": 39,
    "b": 178
  },
  "hsl": {
    "h": 255.971,
    "s": 64.055,
    "l": 42.549
  },
  "oklch": {
    "l": 0.41883,
    "c": 0.20142,
    "h": 286
  },
  "luminance": 0.06202
}

Semantic roles & 50–950 ramp

primary
#4C27B2
secondary
#AFC86D
accent
#E741BB
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #4C27B2

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

Preview Lab → · Contrast checker → · Palette generator →

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