#4C2FA8#4C2FA8

#4C2FA8 is a dark, vivid violet. Relative luminance 0.064; OKLCH L 41.9% C 0.181 H 286.7°. Best body text is #FFFFFF at 9.21:1 contrast (WCAG AA passes).

Color values

HEX#4C2FA8
RGBrgb(76, 47, 168)
HSLhsl(254, 56%, 42%)
HSVhsv(254, 72%, 66%)
CMYKcmyk(54.8%, 72%, 0%, 34.1%)
CIE-LABlab(30.39, 44.17, -60.44)
CIE-LCHlch(30.39, 74.86, 306.16°)
OKLaboklab(41.93% 0.0521 -0.1738)
OKLCHoklch(41.93% 0.181 286.7)
XYZxyz(11.0628, 6.3961, 37.6898)
Luminance0.0640 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2FA8 #8BA82F
analogous
#2F4FA8 #4C2FA8 #892FA8
triadic
#4C2FA8 #A84C2F #2FA84C
tetradic
#4C2FA8 #A82F4F #8BA82F #2FA889
square
#4C2FA8 #A82F4F #8BA82F #2FA889
split-complementary
#4C2FA8 #A8892F #4FA82F
monochromatic
#211448 #362278 #4C2FA8 #6848CC #8F78D9

Accessibility & contrast

On white

9.21
#4C2FA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#4C2FA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2FA8
9.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2FA8#FFFFFF#000000##FFFFFF
##4C2FA81.009.212.289.21
#FFFFFF9.211.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BAC
Deuteranopia (green-blind)
#0044A6
Tritanopia (blue-blind)
#254F68
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #4c2fa8;
/* rgb */ color: rgb(76, 47, 168);
/* oklch */ color: oklch(41.9% 0.181 286.7);
Tailwind
colors: {
  custom: {
    50: '#886ac3',
    500: '#4c2fa8',
    950: '#000000',
  },
}
SCSS
$custom: #4c2fa8;
$custom-light: #886ac3;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2fa8",
  "rgb": {
    "r": 76,
    "g": 47,
    "b": 168
  },
  "hsl": {
    "h": 254.38,
    "s": 56.279,
    "l": 42.157
  },
  "oklch": {
    "l": 0.41931,
    "c": 0.18145,
    "h": 286.7
  },
  "luminance": 0.06397
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4C2FA8

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

Preview Lab → · Contrast checker → · Palette generator →

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