#4C2DB4#4C2DB4

#4C2DB4 is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.8% C 0.198 H 284.9°. Best body text is #FFFFFF at 8.97:1 contrast (WCAG AA passes).

Color values

HEX#4C2DB4
RGBrgb(76, 45, 180)
HSLhsl(254, 60%, 44%)
HSVhsv(254, 75%, 71%)
CMYKcmyk(57.8%, 75%, 0%, 29.4%)
CIE-LABlab(31.13, 48.75, -66.41)
CIE-LCHlch(31.13, 82.38, 306.28°)
OKLaboklab(42.8% 0.0509 -0.1913)
OKLCHoklch(42.8% 0.198 284.9)
XYZxyz(12.1546, 6.7078, 43.8254)
Luminance0.0671 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2DB4 #95B42D
analogous
#2D52B4 #4C2DB4 #902DB4
triadic
#4C2DB4 #B44C2D #2DB44C
tetradic
#4C2DB4 #B42D52 #95B42D #2DB490
square
#4C2DB4 #B42D52 #95B42D #2DB490
split-complementary
#4C2DB4 #B4902D #52B42D
monochromatic
#231552 #372183 #4C2DB4 #6B4CD2 #937DDE

Accessibility & contrast

On white

8.97
#4C2DB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#4C2DB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2DB4
8.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2DB4#FFFFFF#000000##FFFFFF
##4C2DB41.008.972.348.97
#FFFFFF8.971.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB8
Deuteranopia (green-blind)
#0045B2
Tritanopia (blue-blind)
#14536E
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #4c2db4;
/* rgb */ color: rgb(76, 45, 180);
/* oklch */ color: oklch(42.8% 0.198 284.9);
Tailwind
colors: {
  custom: {
    50: '#8a6acc',
    500: '#4c2db4',
    950: '#000000',
  },
}
SCSS
$custom: #4c2db4;
$custom-light: #8a6acc;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2db4",
  "rgb": {
    "r": 76,
    "g": 45,
    "b": 180
  },
  "hsl": {
    "h": 253.778,
    "s": 60,
    "l": 44.118
  },
  "oklch": {
    "l": 0.42795,
    "c": 0.19792,
    "h": 284.9
  },
  "luminance": 0.06709
}

Semantic roles & 50–950 ramp

primary
#4C2DB4
secondary
#B4C776
accent
#E345BF
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #4C2DB4

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

Preview Lab → · Contrast checker → · Palette generator →

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