#4C2FA2#4C2FA2

#4C2FA2 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.4% C 0.174 H 287.8°. Best body text is #FFFFFF at 9.39:1 contrast (WCAG AA passes).

Color values

HEX#4C2FA2
RGBrgb(76, 47, 162)
HSLhsl(255, 55%, 41%)
HSVhsv(255, 71%, 64%)
CMYKcmyk(53.1%, 71%, 0%, 36.5%)
CIE-LABlab(29.86, 42.38, -57.70)
CIE-LCHlch(29.86, 71.59, 306.30°)
OKLaboklab(41.39% 0.0533 -0.1658)
OKLCHoklch(41.39% 0.174 287.8)
XYZxyz(10.5167, 6.1777, 34.8137)
Luminance0.0618 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2FA2 #85A22F
analogous
#2F4CA2 #4C2FA2 #852FA2
triadic
#4C2FA2 #A24C2F #2FA24C
tetradic
#4C2FA2 #A22F4C #85A22F #2FA285
square
#4C2FA2 #A22F4C #85A22F #2FA285
split-complementary
#4C2FA2 #A2852F #4CA22F
monochromatic
#1F1343 #362173 #4C2FA2 #6645C9 #8D75D7

Accessibility & contrast

On white

9.39
#4C2FA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C2FA2
9.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2FA2#FFFFFF#000000##FFFFFF
##4C2FA21.009.392.249.39
#FFFFFF9.391.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A5
Deuteranopia (green-blind)
#0043A0
Tritanopia (blue-blind)
#2B4D65
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4c2fa2;
/* rgb */ color: rgb(76, 47, 162);
/* oklch */ color: oklch(41.4% 0.174 287.8);
Tailwind
colors: {
  custom: {
    50: '#876abe',
    500: '#4c2fa2',
    950: '#000000',
  },
}
SCSS
$custom: #4c2fa2;
$custom-light: #876abe;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2fa2",
  "rgb": {
    "r": 76,
    "g": 47,
    "b": 162
  },
  "hsl": {
    "h": 255.13,
    "s": 55.024,
    "l": 40.98
  },
  "oklch": {
    "l": 0.41387,
    "c": 0.17412,
    "h": 287.8
  },
  "luminance": 0.06178
}

Semantic roles & 50–950 ramp

primary
#4C2FA2
secondary
#AABF6E
accent
#DE49B9
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0712
muted
#7D7A81

Preview Lab

Preview with #4C2FA2

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

Preview Lab → · Contrast checker → · Palette generator →

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