#4C2BB6#4C2BB6

#4C2BB6 is a dark, highly saturated violet. Relative luminance 0.066; OKLCH L 42.7% C 0.202 H 284.8°. Best body text is #FFFFFF at 9.02:1 contrast (WCAG AA passes).

Color values

HEX#4C2BB6
RGBrgb(76, 43, 182)
HSLhsl(254, 62%, 44%)
HSVhsv(254, 76%, 71%)
CMYKcmyk(58.2%, 76.4%, 0%, 28.6%)
CIE-LABlab(30.98, 50.33, -67.85)
CIE-LCHlch(30.98, 84.48, 306.56°)
OKLaboklab(42.74% 0.0518 -0.1955)
OKLCHoklch(42.74% 0.202 284.8)
XYZxyz(12.2853, 6.6409, 44.8814)
Luminance0.0664 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2BB6 #95B62B
analogous
#2B4FB6 #4C2BB6 #922BB6
triadic
#4C2BB6 #B64C2B #2BB64C
tetradic
#4C2BB6 #B62B4F #95B62B #2BB692
square
#4C2BB6 #B62B4F #95B62B #2BB692
split-complementary
#4C2BB6 #B6922B #4FB62B
monochromatic
#231453 #371F84 #4C2BB6 #6B4AD4 #937BE0

Accessibility & contrast

On white

9.02
#4C2BB6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#4C2BB6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2BB6
9.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2BB6#FFFFFF#000000##FFFFFF
##4C2BB61.009.022.339.02
#FFFFFF9.021.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DBA
Deuteranopia (green-blind)
#0045B3
Tritanopia (blue-blind)
#10536F
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #4c2bb6;
/* rgb */ color: rgb(76, 43, 182);
/* oklch */ color: oklch(42.7% 0.202 284.8);
Tailwind
colors: {
  custom: {
    50: '#8a69cd',
    500: '#4c2bb6',
    950: '#000000',
  },
}
SCSS
$custom: #4c2bb6;
$custom-light: #8a69cd;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2bb6",
  "rgb": {
    "r": 76,
    "g": 43,
    "b": 182
  },
  "hsl": {
    "h": 254.245,
    "s": 61.778,
    "l": 44.118
  },
  "oklch": {
    "l": 0.42743,
    "c": 0.20222,
    "h": 284.8
  },
  "luminance": 0.06642
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4C2BB6

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

Preview Lab → · Contrast checker → · Palette generator →

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