#4C2FA3#4C2FA3

#4C2FA3 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.5% C 0.175 H 287.6°. Best body text is #FFFFFF at 9.36:1 contrast (WCAG AA passes).

Color values

HEX#4C2FA3
RGBrgb(76, 47, 163)
HSLhsl(255, 55%, 41%)
HSVhsv(255, 71%, 64%)
CMYKcmyk(53.4%, 71.2%, 0%, 36.1%)
CIE-LABlab(29.94, 42.68, -58.16)
CIE-LCHlch(29.94, 72.14, 306.27°)
OKLaboklab(41.48% 0.0531 -0.1671)
OKLCHoklch(41.48% 0.175 287.6)
XYZxyz(10.6059, 6.2133, 35.2837)
Luminance0.0621 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2FA3 #86A32F
analogous
#2F4CA3 #4C2FA3 #862FA3
triadic
#4C2FA3 #A34C2F #2FA34C
tetradic
#4C2FA3 #A32F4C #86A32F #2FA386
square
#4C2FA3 #A32F4C #86A32F #2FA386
split-complementary
#4C2FA3 #A3862F #4CA32F
monochromatic
#201444 #362173 #4C2FA3 #6746CA #8E75D7

Accessibility & contrast

On white

9.36
#4C2FA3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#4C2FA3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2FA3
9.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2FA3#FFFFFF#000000##FFFFFF
##4C2FA31.009.362.249.36
#FFFFFF9.361.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A6
Deuteranopia (green-blind)
#0043A1
Tritanopia (blue-blind)
#2A4D65
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4c2fa3;
/* rgb */ color: rgb(76, 47, 163);
/* oklch */ color: oklch(41.5% 0.175 287.6);
Tailwind
colors: {
  custom: {
    50: '#876abf',
    500: '#4c2fa3',
    950: '#000000',
  },
}
SCSS
$custom: #4c2fa3;
$custom-light: #876abf;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2fa3",
  "rgb": {
    "r": 76,
    "g": 47,
    "b": 163
  },
  "hsl": {
    "h": 255,
    "s": 55.238,
    "l": 41.176
  },
  "oklch": {
    "l": 0.41477,
    "c": 0.17534,
    "h": 287.6
  },
  "luminance": 0.06214
}

Semantic roles & 50–950 ramp

primary
#4C2FA3
secondary
#ABBF6F
accent
#DF49B9
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0712
muted
#7D7A81

Preview Lab

Preview with #4C2FA3

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

Preview Lab → · Contrast checker → · Palette generator →

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