#4C2AB9#4C2AB9

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

Color values

HEX#4C2AB9
RGBrgb(76, 42, 185)
HSLhsl(254, 63%, 45%)
HSVhsv(254, 77%, 73%)
CMYKcmyk(58.9%, 77.3%, 0%, 27.5%)
CIE-LABlab(31.10, 51.67, -69.43)
CIE-LCHlch(31.10, 86.54, 306.66°)
OKLaboklab(42.92% 0.0517 -0.2001)
OKLCHoklch(42.92% 0.207 284.5)
XYZxyz(12.5627, 6.6944, 46.5197)
Luminance0.0669 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2AB9 #97B92A
analogous
#2A4FB9 #4C2AB9 #942AB9
triadic
#4C2AB9 #B94C2A #2AB94C
tetradic
#4C2AB9 #B92A4F #97B92A #2AB994
square
#4C2AB9 #B92A4F #97B92A #2AB994
split-complementary
#4C2AB9 #B9942A #4FB92A
monochromatic
#231355 #381F87 #4C2AB9 #6B4AD6 #947CE1

Accessibility & contrast

On white

8.98
#4C2AB9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C2AB9
8.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2AB9#FFFFFF#000000##FFFFFF
##4C2AB91.008.982.348.98
#FFFFFF8.981.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DBD
Deuteranopia (green-blind)
#0045B6
Tritanopia (blue-blind)
#075371
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #4c2ab9;
/* rgb */ color: rgb(76, 42, 185);
/* oklch */ color: oklch(42.9% 0.207 284.5);
Tailwind
colors: {
  custom: {
    50: '#8b68cf',
    500: '#4c2ab9',
    950: '#000000',
  },
}
SCSS
$custom: #4c2ab9;
$custom-light: #8b68cf;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2ab9",
  "rgb": {
    "r": 76,
    "g": 42,
    "b": 185
  },
  "hsl": {
    "h": 254.266,
    "s": 62.996,
    "l": 44.51
  },
  "oklch": {
    "l": 0.4292,
    "c": 0.20662,
    "h": 284.5
  },
  "luminance": 0.06695
}

Semantic roles & 50–950 ramp

primary
#4C2AB9
secondary
#B6CA75
accent
#E642BF
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0614
muted
#7E7A82

Preview Lab

Preview with #4C2AB9

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

Preview Lab → · Contrast checker → · Palette generator →

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