#4C2FA4#4C2FA4

#4C2FA4 is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.6% C 0.177 H 287.4°. Best body text is #FFFFFF at 9.33:1 contrast (WCAG AA passes).

Color values

HEX#4C2FA4
RGBrgb(76, 47, 164)
HSLhsl(255, 55%, 41%)
HSVhsv(255, 71%, 64%)
CMYKcmyk(53.7%, 71.3%, 0%, 35.7%)
CIE-LABlab(30.03, 42.98, -58.62)
CIE-LCHlch(30.03, 72.69, 306.25°)
OKLaboklab(41.57% 0.0529 -0.1685)
OKLCHoklch(41.57% 0.177 287.4)
XYZxyz(10.6959, 6.2493, 35.7574)
Luminance0.0625 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2FA4 #87A42F
analogous
#2F4DA4 #4C2FA4 #872FA4
triadic
#4C2FA4 #A44C2F #2FA44C
tetradic
#4C2FA4 #A42F4D #87A42F #2FA487
square
#4C2FA4 #A42F4D #87A42F #2FA487
split-complementary
#4C2FA4 #A4872F #4DA42F
monochromatic
#201445 #362174 #4C2FA4 #6746CA #8E76D8

Accessibility & contrast

On white

9.33
#4C2FA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#4C2FA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2FA4
9.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2FA4#FFFFFF#000000##FFFFFF
##4C2FA41.009.332.259.33
#FFFFFF9.331.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A7
Deuteranopia (green-blind)
#0043A2
Tritanopia (blue-blind)
#294E66
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4c2fa4;
/* rgb */ color: rgb(76, 47, 164);
/* oklch */ color: oklch(41.6% 0.177 287.4);
Tailwind
colors: {
  custom: {
    50: '#876ac0',
    500: '#4c2fa4',
    950: '#000000',
  },
}
SCSS
$custom: #4c2fa4;
$custom-light: #876ac0;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2fa4",
  "rgb": {
    "r": 76,
    "g": 47,
    "b": 164
  },
  "hsl": {
    "h": 254.872,
    "s": 55.45,
    "l": 41.373
  },
  "oklch": {
    "l": 0.41567,
    "c": 0.17657,
    "h": 287.4
  },
  "luminance": 0.0625
}

Semantic roles & 50–950 ramp

primary
#4C2FA4
secondary
#ACC06F
accent
#DF49BA
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0712
muted
#7D7A81

Preview Lab

Preview with #4C2FA4

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

Preview Lab → · Contrast checker → · Palette generator →

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