#4C2BB0#4C2BB0

#4C2BB0 is a dark, vivid violet. Relative luminance 0.064; OKLCH L 42.2% C 0.195 H 285.9°. Best body text is #FFFFFF at 9.21:1 contrast (WCAG AA passes).

Color values

HEX#4C2BB0
RGBrgb(76, 43, 176)
HSLhsl(255, 61%, 43%)
HSVhsv(255, 76%, 69%)
CMYKcmyk(56.8%, 75.6%, 0%, 31%)
CIE-LABlab(30.40, 48.59, -65.23)
CIE-LCHlch(30.40, 81.34, 306.68°)
OKLaboklab(42.16% 0.0534 -0.1878)
OKLCHoklch(42.16% 0.195 285.9)
XYZxyz(11.6785, 6.3982, 41.6855)
Luminance0.0640 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2BB0 #8FB02B
analogous
#2B4CB0 #4C2BB0 #8E2BB0
triadic
#4C2BB0 #B04C2B #2BB04C
tetradic
#4C2BB0 #B02B4C #8FB02B #2BB08E
square
#4C2BB0 #B02B4C #8FB02B #2BB08E
split-complementary
#4C2BB0 #B08E2B #4CB02B
monochromatic
#22134E #371F7F #4C2BB0 #6946D2 #9178DE

Accessibility & contrast

On white

9.21
#4C2BB0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#4C2BB0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2BB0
9.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2BB0#FFFFFF#000000##FFFFFF
##4C2BB01.009.212.289.21
#FFFFFF9.211.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB4
Deuteranopia (green-blind)
#0044AE
Tritanopia (blue-blind)
#1B506C
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #4c2bb0;
/* rgb */ color: rgb(76, 43, 176);
/* oklch */ color: oklch(42.2% 0.195 285.9);
Tailwind
colors: {
  custom: {
    50: '#8968c9',
    500: '#4c2bb0',
    950: '#000000',
  },
}
SCSS
$custom: #4c2bb0;
$custom-light: #8968c9;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2bb0",
  "rgb": {
    "r": 76,
    "g": 43,
    "b": 176
  },
  "hsl": {
    "h": 254.887,
    "s": 60.731,
    "l": 42.941
  },
  "oklch": {
    "l": 0.42161,
    "c": 0.19525,
    "h": 285.9
  },
  "luminance": 0.06399
}

Semantic roles & 50–950 ramp

primary
#4C2BB0
secondary
#B1C671
accent
#E444BC
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #4C2BB0

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

Preview Lab → · Contrast checker → · Palette generator →

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