#4C2FA7#4C2FA7

#4C2FA7 is a dark, vivid violet. Relative luminance 0.064; OKLCH L 41.8% C 0.180 H 286.9°. Best body text is #FFFFFF at 9.24:1 contrast (WCAG AA passes).

Color values

HEX#4C2FA7
RGBrgb(76, 47, 167)
HSLhsl(255, 56%, 42%)
HSVhsv(255, 72%, 65%)
CMYKcmyk(54.5%, 71.9%, 0%, 34.5%)
CIE-LABlab(30.30, 43.87, -59.99)
CIE-LCHlch(30.30, 74.32, 306.18°)
OKLaboklab(41.84% 0.0523 -0.1725)
OKLCHoklch(41.84% 0.18 286.9)
XYZxyz(10.9700, 6.3590, 37.2011)
Luminance0.0636 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2FA7 #8AA72F
analogous
#2F4EA7 #4C2FA7 #882FA7
triadic
#4C2FA7 #A74C2F #2FA74C
tetradic
#4C2FA7 #A72F4E #8AA72F #2FA788
square
#4C2FA7 #A72F4E #8AA72F #2FA788
split-complementary
#4C2FA7 #A7882F #4EA72F
monochromatic
#211447 #362277 #4C2FA7 #6848CB #8F78D9

Accessibility & contrast

On white

9.24
#4C2FA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#4C2FA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2FA7
9.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2FA7#FFFFFF#000000##FFFFFF
##4C2FA71.009.242.279.24
#FFFFFF9.241.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AAB
Deuteranopia (green-blind)
#0044A5
Tritanopia (blue-blind)
#264F68
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4c2fa7;
/* rgb */ color: rgb(76, 47, 167);
/* oklch */ color: oklch(41.8% 0.180 286.9);
Tailwind
colors: {
  custom: {
    50: '#886ac2',
    500: '#4c2fa7',
    950: '#000000',
  },
}
SCSS
$custom: #4c2fa7;
$custom-light: #886ac2;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2fa7",
  "rgb": {
    "r": 76,
    "g": 47,
    "b": 167
  },
  "hsl": {
    "h": 254.5,
    "s": 56.075,
    "l": 41.961
  },
  "oklch": {
    "l": 0.4184,
    "c": 0.18023,
    "h": 286.9
  },
  "luminance": 0.0636
}

Semantic roles & 50–950 ramp

primary
#4C2FA7
secondary
#AEC171
accent
#DF48BB
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0713
muted
#7D7A82

Preview Lab

Preview with #4C2FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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