#4C2899#4C2899

#4C2899 is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.6% C 0.171 H 291.1°. Best body text is #FFFFFF at 10.14:1 contrast (WCAG AA passes).

Color values

HEX#4C2899
RGBrgb(76, 40, 153)
HSLhsl(259, 59%, 38%)
HSVhsv(259, 74%, 60%)
CMYKcmyk(50.3%, 73.9%, 0%, 40%)
CIE-LABlab(27.72, 43.49, -55.72)
CIE-LCHlch(27.72, 70.68, 307.98°)
OKLaboklab(39.62% 0.0616 -0.1599)
OKLCHoklch(39.62% 0.171 291.1)
XYZxyz(9.4874, 5.3536, 30.6643)
Luminance0.0535 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2899 #759928
analogous
#283D99 #4C2899 #842899
triadic
#4C2899 #994C28 #28994C
tetradic
#4C2899 #99283D #759928 #289984
square
#4C2899 #99283D #759928 #289984
split-complementary
#4C2899 #998428 #3D9928
monochromatic
#1C0F38 #341B68 #4C2899 #6435CA #8965D7

Accessibility & contrast

On white

10.14
#4C2899 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#4C2899 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2899
10.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2899#FFFFFF#000000##FFFFFF
##4C28991.0010.142.0710.14
#FFFFFF10.141.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.141.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4c2899;
/* rgb */ color: rgb(76, 40, 153);
/* oklch */ color: oklch(39.6% 0.171 291.1);
Tailwind
colors: {
  custom: {
    50: '#8665b8',
    500: '#4c2899',
    950: '#000000',
  },
}
SCSS
$custom: #4c2899;
$custom-light: #8665b8;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2899",
  "rgb": {
    "r": 76,
    "g": 40,
    "b": 153
  },
  "hsl": {
    "h": 259.115,
    "s": 58.549,
    "l": 37.843
  },
  "oklch": {
    "l": 0.39622,
    "c": 0.17136,
    "h": 291.1
  },
  "luminance": 0.05354
}

Semantic roles & 50–950 ramp

primary
#4C2899
secondary
#9FBD60
accent
#E246B0
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #4C2899

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

Preview Lab → · Contrast checker → · Palette generator →

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