#4C2BB5#4C2BB5

#4C2BB5 is a dark, highly saturated violet. Relative luminance 0.066; OKLCH L 42.6% C 0.201 H 285.0°. Best body text is #FFFFFF at 9.05:1 contrast (WCAG AA passes).

Color values

HEX#4C2BB5
RGBrgb(76, 43, 181)
HSLhsl(254, 62%, 44%)
HSVhsv(254, 76%, 71%)
CMYKcmyk(58%, 76.2%, 0%, 29%)
CIE-LABlab(30.88, 50.04, -67.42)
CIE-LCHlch(30.88, 83.96, 306.58°)
OKLaboklab(42.65% 0.0521 -0.1942)
OKLCHoklch(42.65% 0.201 285)
XYZxyz(12.1823, 6.5997, 44.3390)
Luminance0.0660 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2BB5 #94B52B
analogous
#2B4FB5 #4C2BB5 #912BB5
triadic
#4C2BB5 #B54C2B #2BB54C
tetradic
#4C2BB5 #B52B4F #94B52B #2BB591
square
#4C2BB5 #B52B4F #94B52B #2BB591
split-complementary
#4C2BB5 #B5912B #4FB52B
monochromatic
#221452 #371F84 #4C2BB5 #6A49D4 #937BE0

Accessibility & contrast

On white

9.05
#4C2BB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C2BB5
9.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2BB5#FFFFFF#000000##FFFFFF
##4C2BB51.009.052.329.05
#FFFFFF9.051.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CB9
Deuteranopia (green-blind)
#0044B2
Tritanopia (blue-blind)
#12526F
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #4c2bb5;
/* rgb */ color: rgb(76, 43, 181);
/* oklch */ color: oklch(42.6% 0.201 285.0);
Tailwind
colors: {
  custom: {
    50: '#8a69cc',
    500: '#4c2bb5',
    950: '#000000',
  },
}
SCSS
$custom: #4c2bb5;
$custom-light: #8a69cc;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2bb5",
  "rgb": {
    "r": 76,
    "g": 43,
    "b": 181
  },
  "hsl": {
    "h": 254.348,
    "s": 61.607,
    "l": 43.922
  },
  "oklch": {
    "l": 0.42645,
    "c": 0.20106,
    "h": 285
  },
  "luminance": 0.066
}

Semantic roles & 50–950 ramp

primary
#4C2BB5
secondary
#B4C874
accent
#E543BE
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0614
muted
#7E7A82

Preview Lab

Preview with #4C2BB5

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

Preview Lab → · Contrast checker → · Palette generator →

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