#4C2FAC#4C2FAC

#4C2FAC is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.3% C 0.186 H 286.0°. Best body text is #FFFFFF at 9.09:1 contrast (WCAG AA passes).

Color values

HEX#4C2FAC
RGBrgb(76, 47, 172)
HSLhsl(254, 57%, 43%)
HSVhsv(254, 73%, 67%)
CMYKcmyk(55.8%, 72.7%, 0%, 32.5%)
CIE-LABlab(30.75, 45.35, -62.25)
CIE-LCHlch(30.75, 77.02, 306.08°)
OKLaboklab(42.3% 0.0512 -0.1791)
OKLCHoklch(42.3% 0.186 286)
XYZxyz(11.4412, 6.5474, 39.6826)
Luminance0.0655 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2FAC #8FAC2F
analogous
#2F50AC #4C2FAC #8A2FAC
triadic
#4C2FAC #AC4C2F #2FAC4C
tetradic
#4C2FAC #AC2F50 #8FAC2F #2FAC8A
square
#4C2FAC #AC2F50 #8FAC2F #2FAC8A
split-complementary
#4C2FAC #AC8A2F #50AC2F
monochromatic
#22154C #37227C #4C2FAC #694BCE #917BDB

Accessibility & contrast

On white

9.09
#4C2FAC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#4C2FAC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2FAC
9.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2FAC#FFFFFF#000000##FFFFFF
##4C2FAC1.009.092.319.09
#FFFFFF9.091.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CB0
Deuteranopia (green-blind)
#0045AA
Tritanopia (blue-blind)
#20516A
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #4c2fac;
/* rgb */ color: rgb(76, 47, 172);
/* oklch */ color: oklch(42.3% 0.186 286.0);
Tailwind
colors: {
  custom: {
    50: '#886ac6',
    500: '#4c2fac',
    950: '#000000',
  },
}
SCSS
$custom: #4c2fac;
$custom-light: #886ac6;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2fac",
  "rgb": {
    "r": 76,
    "g": 47,
    "b": 172
  },
  "hsl": {
    "h": 253.92,
    "s": 57.078,
    "l": 42.941
  },
  "oklch": {
    "l": 0.423,
    "c": 0.1863,
    "h": 286
  },
  "luminance": 0.06548
}

Semantic roles & 50–950 ramp

primary
#4C2FAC
secondary
#B1C374
accent
#E047BD
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0D0713
muted
#7D7A82

Preview Lab

Preview with #4C2FAC

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

Preview Lab → · Contrast checker → · Palette generator →

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