#4C2BB8#4C2BB8

#4C2BB8 is a dark, highly saturated violet. Relative luminance 0.067; OKLCH L 42.9% C 0.205 H 284.5°. Best body text is #FFFFFF at 8.96:1 contrast (WCAG AA passes).

Color values

HEX#4C2BB8
RGBrgb(76, 43, 184)
HSLhsl(254, 62%, 45%)
HSVhsv(254, 77%, 72%)
CMYKcmyk(58.7%, 76.6%, 0%, 27.8%)
CIE-LABlab(31.17, 50.90, -68.72)
CIE-LCHlch(31.17, 85.52, 306.53°)
OKLaboklab(42.94% 0.0513 -0.198)
OKLCHoklch(42.94% 0.205 284.5)
XYZxyz(12.4935, 6.7242, 45.9777)
Luminance0.0673 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2BB8 #97B82B
analogous
#2B50B8 #4C2BB8 #932BB8
triadic
#4C2BB8 #B84C2B #2BB84C
tetradic
#4C2BB8 #B82B50 #97B82B #2BB893
square
#4C2BB8 #B82B50 #97B82B #2BB893
split-complementary
#4C2BB8 #B8932B #50B82B
monochromatic
#231455 #381F86 #4C2BB8 #6B4BD5 #947DE1

Accessibility & contrast

On white

8.96
#4C2BB8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#4C2BB8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2BB8
8.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2BB8#FFFFFF#000000##FFFFFF
##4C2BB81.008.962.358.96
#FFFFFF8.961.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DBC
Deuteranopia (green-blind)
#0045B5
Tritanopia (blue-blind)
#0B5370
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #4c2bb8;
/* rgb */ color: rgb(76, 43, 184);
/* oklch */ color: oklch(42.9% 0.205 284.5);
Tailwind
colors: {
  custom: {
    50: '#8b69cf',
    500: '#4c2bb8',
    950: '#000000',
  },
}
SCSS
$custom: #4c2bb8;
$custom-light: #8b69cf;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2bb8",
  "rgb": {
    "r": 76,
    "g": 43,
    "b": 184
  },
  "hsl": {
    "h": 254.043,
    "s": 62.115,
    "l": 44.51
  },
  "oklch": {
    "l": 0.42939,
    "c": 0.20453,
    "h": 284.5
  },
  "luminance": 0.06725
}

Semantic roles & 50–950 ramp

primary
#4C2BB8
secondary
#B6C976
accent
#E543BF
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0614
muted
#7E7A82

Preview Lab

Preview with #4C2BB8

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

Preview Lab → · Contrast checker → · Palette generator →

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