#4C2FAA#4C2FAA

#4C2FAA is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.1% C 0.184 H 286.3°. Best body text is #FFFFFF at 9.15:1 contrast (WCAG AA passes).

Color values

HEX#4C2FAA
RGBrgb(76, 47, 170)
HSLhsl(254, 57%, 43%)
HSVhsv(254, 72%, 67%)
CMYKcmyk(55.3%, 72.4%, 0%, 33.3%)
CIE-LABlab(30.57, 44.76, -61.35)
CIE-LCHlch(30.57, 75.94, 306.11°)
OKLaboklab(42.12% 0.0517 -0.1765)
OKLCHoklch(42.12% 0.184 286.3)
XYZxyz(11.2505, 6.4712, 38.6787)
Luminance0.0647 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2FAA #8DAA2F
analogous
#2F50AA #4C2FAA #892FAA
triadic
#4C2FAA #AA4C2F #2FAA4C
tetradic
#4C2FAA #AA2F50 #8DAA2F #2FAA89
square
#4C2FAA #AA2F50 #8DAA2F #2FAA89
split-complementary
#4C2FAA #AA892F #50AA2F
monochromatic
#21144A #37227A #4C2FAA #6849CD #9079DA

Accessibility & contrast

On white

9.15
#4C2FAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C2FAA
9.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2FAA#FFFFFF#000000##FFFFFF
##4C2FAA1.009.152.299.15
#FFFFFF9.151.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BAE
Deuteranopia (green-blind)
#0044A8
Tritanopia (blue-blind)
#235069
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #4c2faa;
/* rgb */ color: rgb(76, 47, 170);
/* oklch */ color: oklch(42.1% 0.184 286.3);
Tailwind
colors: {
  custom: {
    50: '#886ac4',
    500: '#4c2faa',
    950: '#000000',
  },
}
SCSS
$custom: #4c2faa;
$custom-light: #886ac4;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2faa",
  "rgb": {
    "r": 76,
    "g": 47,
    "b": 170
  },
  "hsl": {
    "h": 254.146,
    "s": 56.682,
    "l": 42.549
  },
  "oklch": {
    "l": 0.42115,
    "c": 0.18388,
    "h": 286.3
  },
  "luminance": 0.06472
}

Semantic roles & 50–950 ramp

primary
#4C2FAA
secondary
#AFC272
accent
#E048BC
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0713
muted
#7D7A82

Preview Lab

Preview with #4C2FAA

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

Preview Lab → · Contrast checker → · Palette generator →

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