#4C2FA0#4C2FA0

#4C2FA0 is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.2% C 0.172 H 288.2°. Best body text is #FFFFFF at 9.45:1 contrast (WCAG AA passes).

Color values

HEX#4C2FA0
RGBrgb(76, 47, 160)
HSLhsl(255, 55%, 41%)
HSVhsv(255, 71%, 63%)
CMYKcmyk(52.5%, 70.6%, 0%, 37.3%)
CIE-LABlab(29.68, 41.79, -56.77)
CIE-LCHlch(29.68, 70.49, 306.36°)
OKLaboklab(41.21% 0.0537 -0.163)
OKLCHoklch(41.21% 0.172 288.2)
XYZxyz(10.3403, 6.1071, 33.8848)
Luminance0.0611 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2FA0 #83A02F
analogous
#2F4BA0 #4C2FA0 #842FA0
triadic
#4C2FA0 #A04C2F #2FA04C
tetradic
#4C2FA0 #A02F4B #83A02F #2FA084
square
#4C2FA0 #A02F4B #83A02F #2FA084
split-complementary
#4C2FA0 #A0842F #4BA02F
monochromatic
#1F1341 #362171 #4C2FA0 #6644C8 #8D73D6

Accessibility & contrast

On white

9.45
#4C2FA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#4C2FA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2FA0
9.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2FA0#FFFFFF#000000##FFFFFF
##4C2FA01.009.452.229.45
#FFFFFF9.451.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A3
Deuteranopia (green-blind)
#00439E
Tritanopia (blue-blind)
#2D4C64
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4c2fa0;
/* rgb */ color: rgb(76, 47, 160);
/* oklch */ color: oklch(41.2% 0.172 288.2);
Tailwind
colors: {
  custom: {
    50: '#866abd',
    500: '#4c2fa0',
    950: '#000000',
  },
}
SCSS
$custom: #4c2fa0;
$custom-light: #866abd;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2fa0",
  "rgb": {
    "r": 76,
    "g": 47,
    "b": 160
  },
  "hsl": {
    "h": 255.398,
    "s": 54.589,
    "l": 40.588
  },
  "oklch": {
    "l": 0.41208,
    "c": 0.17165,
    "h": 288.2
  },
  "luminance": 0.06108
}

Semantic roles & 50–950 ramp

primary
#4C2FA0
secondary
#A9BE6D
accent
#DE4AB8
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4C2FA0

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

Preview Lab → · Contrast checker → · Palette generator →

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