#4C2CAF#4C2CAF

#4C2CAF is a dark, vivid violet. Relative luminance 0.064; OKLCH L 42.2% C 0.193 H 285.9°. Best body text is #FFFFFF at 9.18:1 contrast (WCAG AA passes).

Color values

HEX#4C2CAF
RGBrgb(76, 44, 175)
HSLhsl(255, 60%, 43%)
HSVhsv(255, 75%, 69%)
CMYKcmyk(56.6%, 74.9%, 0%, 31.4%)
CIE-LABlab(30.48, 47.80, -64.50)
CIE-LCHlch(30.48, 80.28, 306.54°)
OKLaboklab(42.19% 0.0529 -0.1857)
OKLCHoklch(42.19% 0.193 285.9)
XYZxyz(11.6167, 6.4323, 41.1786)
Luminance0.0643 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2CAF #8FAF2C
analogous
#2C4EAF #4C2CAF #8D2CAF
triadic
#4C2CAF #AF4C2C #2CAF4C
tetradic
#4C2CAF #AF2C4E #8FAF2C #2CAF8D
square
#4C2CAF #AF2C4E #8FAF2C #2CAF8D
split-complementary
#4C2CAF #AF8D2C #4EAF2C
monochromatic
#22134D #37207E #4C2CAF #6947D1 #9178DD

Accessibility & contrast

On white

9.18
#4C2CAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#4C2CAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2CAF
9.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2CAF#FFFFFF#000000##FFFFFF
##4C2CAF1.009.182.299.18
#FFFFFF9.181.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB3
Deuteranopia (green-blind)
#0044AD
Tritanopia (blue-blind)
#1D506B
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #4c2caf;
/* rgb */ color: rgb(76, 44, 175);
/* oklch */ color: oklch(42.2% 0.193 285.9);
Tailwind
colors: {
  custom: {
    50: '#8969c8',
    500: '#4c2caf',
    950: '#000000',
  },
}
SCSS
$custom: #4c2caf;
$custom-light: #8969c8;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2caf",
  "rgb": {
    "r": 76,
    "g": 44,
    "b": 175
  },
  "hsl": {
    "h": 254.656,
    "s": 59.817,
    "l": 42.941
  },
  "oklch": {
    "l": 0.4219,
    "c": 0.19306,
    "h": 285.9
  },
  "luminance": 0.06433
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4C2CAF

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

Preview Lab → · Contrast checker → · Palette generator →

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