#4C2BB9#4C2BB9

#4C2BB9 is a dark, highly saturated violet. Relative luminance 0.068; OKLCH L 43.0% C 0.206 H 284.4°. Best body text is #FFFFFF at 8.92:1 contrast (WCAG AA passes).

Color values

HEX#4C2BB9
RGBrgb(76, 43, 185)
HSLhsl(254, 62%, 45%)
HSVhsv(254, 77%, 73%)
CMYKcmyk(58.9%, 76.8%, 0%, 27.5%)
CIE-LABlab(31.27, 51.19, -69.15)
CIE-LCHlch(31.27, 86.04, 306.51°)
OKLaboklab(43.04% 0.051 -0.1993)
OKLCHoklch(43.04% 0.206 284.4)
XYZxyz(12.5986, 6.7662, 46.5317)
Luminance0.0677 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2BB9 #98B92B
analogous
#2B51B9 #4C2BB9 #932BB9
triadic
#4C2BB9 #B94C2B #2BB94C
tetradic
#4C2BB9 #B92B51 #98B92B #2BB993
square
#4C2BB9 #B92B51 #98B92B #2BB993
split-complementary
#4C2BB9 #B9932B #51B92B
monochromatic
#231456 #381F87 #4C2BB9 #6C4CD5 #957EE1

Accessibility & contrast

On white

8.92
#4C2BB9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C2BB9
8.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2BB9#FFFFFF#000000##FFFFFF
##4C2BB91.008.922.358.92
#FFFFFF8.921.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EBD
Deuteranopia (green-blind)
#0045B6
Tritanopia (blue-blind)
#075471
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #4c2bb9;
/* rgb */ color: rgb(76, 43, 185);
/* oklch */ color: oklch(43.0% 0.206 284.4);
Tailwind
colors: {
  custom: {
    50: '#8b69cf',
    500: '#4c2bb9',
    950: '#000000',
  },
}
SCSS
$custom: #4c2bb9;
$custom-light: #8b69cf;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2bb9",
  "rgb": {
    "r": 76,
    "g": 43,
    "b": 185
  },
  "hsl": {
    "h": 253.944,
    "s": 62.281,
    "l": 44.706
  },
  "oklch": {
    "l": 0.43037,
    "c": 0.20568,
    "h": 284.4
  },
  "luminance": 0.06767
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4C2BB9

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

Preview Lab → · Contrast checker → · Palette generator →

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