#4C2799#4C2799

#4C2799 is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.5% C 0.172 H 291.2°. Best body text is #FFFFFF at 10.21:1 contrast (WCAG AA passes).

Color values

HEX#4C2799
RGBrgb(76, 39, 153)
HSLhsl(259, 59%, 38%)
HSVhsv(259, 75%, 60%)
CMYKcmyk(50.3%, 74.5%, 0%, 40%)
CIE-LABlab(27.54, 44.01, -56.01)
CIE-LCHlch(27.54, 71.23, 308.15°)
OKLaboklab(39.49% 0.0624 -0.1608)
OKLCHoklch(39.49% 0.172 291.2)
XYZxyz(9.4541, 5.2871, 30.6532)
Luminance0.0529 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2799 #749927
analogous
#273B99 #4C2799 #852799
triadic
#4C2799 #994C27 #27994C
tetradic
#4C2799 #99273B #749927 #279985
square
#4C2799 #99273B #749927 #279985
split-complementary
#4C2799 #998527 #3B9927
monochromatic
#1C0E37 #341B68 #4C2799 #6433CA #8963D7

Accessibility & contrast

On white

10.21
#4C2799 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C2799
10.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2799#FFFFFF#000000##FFFFFF
##4C27991.0010.212.0610.21
#FFFFFF10.211.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439C
Deuteranopia (green-blind)
#003F97
Tritanopia (blue-blind)
#32455E
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4c2799;
/* rgb */ color: rgb(76, 39, 153);
/* oklch */ color: oklch(39.5% 0.172 291.2);
Tailwind
colors: {
  custom: {
    50: '#8665b8',
    500: '#4c2799',
    950: '#000000',
  },
}
SCSS
$custom: #4c2799;
$custom-light: #8665b8;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2799",
  "rgb": {
    "r": 76,
    "g": 39,
    "b": 153
  },
  "hsl": {
    "h": 259.474,
    "s": 59.375,
    "l": 37.647
  },
  "oklch": {
    "l": 0.39494,
    "c": 0.17248,
    "h": 291.2
  },
  "luminance": 0.05287
}

Semantic roles & 50–950 ramp

primary
#4C2799
secondary
#9EBD5F
accent
#E345AF
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #4C2799

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

Preview Lab → · Contrast checker → · Palette generator →

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