#4C2BB2#4C2BB2

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

Color values

HEX#4C2BB2
RGBrgb(76, 43, 178)
HSLhsl(255, 61%, 43%)
HSVhsv(255, 76%, 70%)
CMYKcmyk(57.3%, 75.8%, 0%, 30.2%)
CIE-LABlab(30.59, 49.17, -66.11)
CIE-LCHlch(30.59, 82.39, 306.64°)
OKLaboklab(42.35% 0.0529 -0.1904)
OKLCHoklch(42.35% 0.198 285.5)
XYZxyz(11.8778, 6.4779, 42.7353)
Luminance0.0648 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2BB2 #91B22B
analogous
#2B4DB2 #4C2BB2 #8F2BB2
triadic
#4C2BB2 #B24C2B #2BB24C
tetradic
#4C2BB2 #B22B4D #91B22B #2BB28F
square
#4C2BB2 #B22B4D #91B22B #2BB28F
split-complementary
#4C2BB2 #B28F2B #4DB22B
monochromatic
#22134F #371F81 #4C2BB2 #6A48D3 #9279DF

Accessibility & contrast

On white

9.15
#4C2BB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C2BB2
9.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2BB2#FFFFFF#000000##FFFFFF
##4C2BB21.009.152.309.15
#FFFFFF9.151.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CB6
Deuteranopia (green-blind)
#0044B0
Tritanopia (blue-blind)
#18516D
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #4c2bb2;
/* rgb */ color: rgb(76, 43, 178);
/* oklch */ color: oklch(42.4% 0.198 285.5);
Tailwind
colors: {
  custom: {
    50: '#8a68ca',
    500: '#4c2bb2',
    950: '#000000',
  },
}
SCSS
$custom: #4c2bb2;
$custom-light: #8a68ca;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2bb2",
  "rgb": {
    "r": 76,
    "g": 43,
    "b": 178
  },
  "hsl": {
    "h": 254.667,
    "s": 61.086,
    "l": 43.333
  },
  "oklch": {
    "l": 0.42354,
    "c": 0.19758,
    "h": 285.5
  },
  "luminance": 0.06479
}

Semantic roles & 50–950 ramp

primary
#4C2BB2
secondary
#B2C772
accent
#E444BD
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #4C2BB2

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

Preview Lab → · Contrast checker → · Palette generator →

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