#4C279A#4C279A

#4C279A is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.6% C 0.174 H 291.0°. Best body text is #FFFFFF at 10.17:1 contrast (WCAG AA passes).

Color values

HEX#4C279A
RGBrgb(76, 39, 154)
HSLhsl(259, 60%, 38%)
HSVhsv(259, 75%, 60%)
CMYKcmyk(50.6%, 74.7%, 0%, 39.6%)
CIE-LABlab(27.63, 44.29, -56.48)
CIE-LCHlch(27.63, 71.77, 308.10°)
OKLaboklab(39.59% 0.0622 -0.1621)
OKLCHoklch(39.59% 0.174 291)
XYZxyz(9.5371, 5.3203, 31.0900)
Luminance0.0532 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C279A #759A27
analogous
#273C9A #4C279A #85279A
triadic
#4C279A #9A4C27 #279A4C
tetradic
#4C279A #9A273C #759A27 #279A85
square
#4C279A #9A273C #759A27 #279A85
split-complementary
#4C279A #9A8527 #3C9A27
monochromatic
#1C0E38 #341B69 #4C279A #6433CB #8964D8

Accessibility & contrast

On white

10.17
#4C279A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#4C279A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C279A
10.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C279A#FFFFFF#000000##FFFFFF
##4C279A1.0010.172.0610.17
#FFFFFF10.171.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439D
Deuteranopia (green-blind)
#003F98
Tritanopia (blue-blind)
#32465E
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4c279a;
/* rgb */ color: rgb(76, 39, 154);
/* oklch */ color: oklch(39.6% 0.174 291.0);
Tailwind
colors: {
  custom: {
    50: '#8665b9',
    500: '#4c279a',
    950: '#000000',
  },
}
SCSS
$custom: #4c279a;
$custom-light: #8665b9;
$custom-dark: #000000;
JSON
{
  "hex": "#4c279a",
  "rgb": {
    "r": 76,
    "g": 39,
    "b": 154
  },
  "hsl": {
    "h": 259.304,
    "s": 59.585,
    "l": 37.843
  },
  "oklch": {
    "l": 0.39586,
    "c": 0.17366,
    "h": 291
  },
  "luminance": 0.05321
}

Semantic roles & 50–950 ramp

primary
#4C279A
secondary
#9FBD5F
accent
#E345B0
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4C279A

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

Preview Lab → · Contrast checker → · Palette generator →

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