#4C2FA6#4C2FA6

#4C2FA6 is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.7% C 0.179 H 287.1°. Best body text is #FFFFFF at 9.27:1 contrast (WCAG AA passes).

Color values

HEX#4C2FA6
RGBrgb(76, 47, 166)
HSLhsl(255, 56%, 42%)
HSVhsv(255, 72%, 65%)
CMYKcmyk(54.2%, 71.7%, 0%, 34.9%)
CIE-LABlab(30.21, 43.57, -59.53)
CIE-LCHlch(30.21, 73.77, 306.20°)
OKLaboklab(41.75% 0.0525 -0.1711)
OKLCHoklch(41.75% 0.179 287.1)
XYZxyz(10.8779, 6.3221, 36.7161)
Luminance0.0632 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2FA6 #89A62F
analogous
#2F4EA6 #4C2FA6 #882FA6
triadic
#4C2FA6 #A64C2F #2FA64C
tetradic
#4C2FA6 #A62F4E #89A62F #2FA688
square
#4C2FA6 #A62F4E #89A62F #2FA688
split-complementary
#4C2FA6 #A6882F #4EA62F
monochromatic
#201447 #362176 #4C2FA6 #6747CB #8F77D8

Accessibility & contrast

On white

9.27
#4C2FA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#4C2FA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2FA6
9.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2FA6#FFFFFF#000000##FFFFFF
##4C2FA61.009.272.269.27
#FFFFFF9.271.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AAA
Deuteranopia (green-blind)
#0044A4
Tritanopia (blue-blind)
#274E67
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4c2fa6;
/* rgb */ color: rgb(76, 47, 166);
/* oklch */ color: oklch(41.7% 0.179 287.1);
Tailwind
colors: {
  custom: {
    50: '#876ac1',
    500: '#4c2fa6',
    950: '#000000',
  },
}
SCSS
$custom: #4c2fa6;
$custom-light: #876ac1;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2fa6",
  "rgb": {
    "r": 76,
    "g": 47,
    "b": 166
  },
  "hsl": {
    "h": 254.622,
    "s": 55.869,
    "l": 41.765
  },
  "oklch": {
    "l": 0.41748,
    "c": 0.17901,
    "h": 287.1
  },
  "luminance": 0.06323
}

Semantic roles & 50–950 ramp

primary
#4C2FA6
secondary
#ADC170
accent
#DF49BA
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0712
muted
#7D7A81

Preview Lab

Preview with #4C2FA6

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

Preview Lab → · Contrast checker → · Palette generator →

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