#4C2BB4#4C2BB4

#4C2BB4 is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.5% C 0.200 H 285.2°. Best body text is #FFFFFF at 9.08:1 contrast (WCAG AA passes).

Color values

HEX#4C2BB4
RGBrgb(76, 43, 180)
HSLhsl(254, 61%, 44%)
HSVhsv(254, 76%, 71%)
CMYKcmyk(57.8%, 76.1%, 0%, 29.4%)
CIE-LABlab(30.78, 49.75, -66.98)
CIE-LCHlch(30.78, 83.44, 306.60°)
OKLaboklab(42.55% 0.0523 -0.1929)
OKLCHoklch(42.55% 0.2 285.2)
XYZxyz(12.0801, 6.5588, 43.8006)
Luminance0.0656 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2BB4 #93B42B
analogous
#2B4EB4 #4C2BB4 #902BB4
triadic
#4C2BB4 #B44C2B #2BB44C
tetradic
#4C2BB4 #B42B4E #93B42B #2BB490
square
#4C2BB4 #B42B4E #93B42B #2BB490
split-complementary
#4C2BB4 #B4902B #4EB42B
monochromatic
#221351 #371F83 #4C2BB4 #6A49D3 #927ADF

Accessibility & contrast

On white

9.08
#4C2BB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C2BB4
9.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2BB4#FFFFFF#000000##FFFFFF
##4C2BB41.009.082.319.08
#FFFFFF9.081.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CB8
Deuteranopia (green-blind)
#0044B1
Tritanopia (blue-blind)
#15526E
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #4c2bb4;
/* rgb */ color: rgb(76, 43, 180);
/* oklch */ color: oklch(42.5% 0.200 285.2);
Tailwind
colors: {
  custom: {
    50: '#8a68cc',
    500: '#4c2bb4',
    950: '#000000',
  },
}
SCSS
$custom: #4c2bb4;
$custom-light: #8a68cc;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2bb4",
  "rgb": {
    "r": 76,
    "g": 43,
    "b": 180
  },
  "hsl": {
    "h": 254.453,
    "s": 61.435,
    "l": 43.725
  },
  "oklch": {
    "l": 0.42548,
    "c": 0.1999,
    "h": 285.2
  },
  "luminance": 0.0656
}

Semantic roles & 50–950 ramp

primary
#4C2BB4
secondary
#B3C773
accent
#E543BE
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #4C2BB4

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

Preview Lab → · Contrast checker → · Palette generator →

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