#4C2CB1#4C2CB1

#4C2CB1 is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.4% C 0.195 H 285.6°. Best body text is #FFFFFF at 9.12:1 contrast (WCAG AA passes).

Color values

HEX#4C2CB1
RGBrgb(76, 44, 177)
HSLhsl(254, 60%, 43%)
HSVhsv(254, 75%, 69%)
CMYKcmyk(57.1%, 75.1%, 0%, 30.6%)
CIE-LABlab(30.67, 48.38, -65.38)
CIE-LCHlch(30.67, 81.33, 306.50°)
OKLaboklab(42.38% 0.0524 -0.1882)
OKLCHoklch(42.38% 0.195 285.6)
XYZxyz(11.8146, 6.5115, 42.2207)
Luminance0.0651 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2CB1 #91B12C
analogous
#2C4EB1 #4C2CB1 #8E2CB1
triadic
#4C2CB1 #B14C2C #2CB14C
tetradic
#4C2CB1 #B12C4E #91B12C #2CB18E
square
#4C2CB1 #B12C4E #91B12C #2CB18E
split-complementary
#4C2CB1 #B18E2C #4EB12C
monochromatic
#22144F #372080 #4C2CB1 #6A49D2 #927ADE

Accessibility & contrast

On white

9.12
#4C2CB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#4C2CB1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2CB1
9.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2CB1#FFFFFF#000000##FFFFFF
##4C2CB11.009.122.309.12
#FFFFFF9.121.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CB5
Deuteranopia (green-blind)
#0044AF
Tritanopia (blue-blind)
#1A516C
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #4c2cb1;
/* rgb */ color: rgb(76, 44, 177);
/* oklch */ color: oklch(42.4% 0.195 285.6);
Tailwind
colors: {
  custom: {
    50: '#8969c9',
    500: '#4c2cb1',
    950: '#000000',
  },
}
SCSS
$custom: #4c2cb1;
$custom-light: #8969c9;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2cb1",
  "rgb": {
    "r": 76,
    "g": 44,
    "b": 177
  },
  "hsl": {
    "h": 254.436,
    "s": 60.181,
    "l": 43.333
  },
  "oklch": {
    "l": 0.42382,
    "c": 0.19541,
    "h": 285.6
  },
  "luminance": 0.06512
}

Semantic roles & 50–950 ramp

primary
#4C2CB1
secondary
#B2C673
accent
#E344BD
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #4C2CB1

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

Preview Lab → · Contrast checker → · Palette generator →

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