#4C2CAE#4C2CAE

#4C2CAE is a dark, vivid violet. Relative luminance 0.064; OKLCH L 42.1% C 0.192 H 286.1°. Best body text is #FFFFFF at 9.22:1 contrast (WCAG AA passes).

Color values

HEX#4C2CAE
RGBrgb(76, 44, 174)
HSLhsl(255, 60%, 43%)
HSVhsv(255, 75%, 68%)
CMYKcmyk(56.3%, 74.7%, 0%, 31.8%)
CIE-LABlab(30.38, 47.51, -64.06)
CIE-LCHlch(30.38, 79.75, 306.56°)
OKLaboklab(42.1% 0.0532 -0.1844)
OKLCHoklch(42.1% 0.192 286.1)
XYZxyz(11.5189, 6.3932, 40.6632)
Luminance0.0639 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2CAE #8EAE2C
analogous
#2C4DAE #4C2CAE #8D2CAE
triadic
#4C2CAE #AE4C2C #2CAE4C
tetradic
#4C2CAE #AE2C4D #8EAE2C #2CAE8D
square
#4C2CAE #AE2C4D #8EAE2C #2CAE8D
split-complementary
#4C2CAE #AE8D2C #4DAE2C
monochromatic
#21134C #37207D #4C2CAE #6947D0 #9178DD

Accessibility & contrast

On white

9.22
#4C2CAE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#4C2CAE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2CAE
9.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2CAE#FFFFFF#000000##FFFFFF
##4C2CAE1.009.222.289.22
#FFFFFF9.221.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB2
Deuteranopia (green-blind)
#0044AC
Tritanopia (blue-blind)
#1E506B
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #4c2cae;
/* rgb */ color: rgb(76, 44, 174);
/* oklch */ color: oklch(42.1% 0.192 286.1);
Tailwind
colors: {
  custom: {
    50: '#8969c7',
    500: '#4c2cae',
    950: '#000000',
  },
}
SCSS
$custom: #4c2cae;
$custom-light: #8969c7;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2cae",
  "rgb": {
    "r": 76,
    "g": 44,
    "b": 174
  },
  "hsl": {
    "h": 254.769,
    "s": 59.633,
    "l": 42.745
  },
  "oklch": {
    "l": 0.42095,
    "c": 0.19188,
    "h": 286.1
  },
  "luminance": 0.06394
}

Semantic roles & 50–950 ramp

primary
#4C2CAE
secondary
#B0C571
accent
#E345BC
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #4C2CAE

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

Preview Lab → · Contrast checker → · Palette generator →

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