#4C2795#4C2795

#4C2795 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.1% C 0.168 H 292.2°. Best body text is #FFFFFF at 10.34:1 contrast (WCAG AA passes).

Color values

HEX#4C2795
RGBrgb(76, 39, 149)
HSLhsl(260, 59%, 37%)
HSVhsv(260, 74%, 58%)
CMYKcmyk(49%, 73.8%, 0%, 41.6%)
CIE-LABlab(27.18, 42.87, -54.15)
CIE-LCHlch(27.18, 69.07, 308.37°)
OKLaboklab(39.13% 0.0634 -0.1553)
OKLCHoklch(39.13% 0.168 292.2)
XYZxyz(9.1293, 5.1571, 28.9424)
Luminance0.0516 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2795 #709527
analogous
#273995 #4C2795 #832795
triadic
#4C2795 #954C27 #27954C
tetradic
#4C2795 #952739 #709527 #279583
square
#4C2795 #952739 #709527 #279583
split-complementary
#4C2795 #958327 #399527
monochromatic
#1B0E34 #331A64 #4C2795 #6534C6 #8861D6

Accessibility & contrast

On white

10.34
#4C2795 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#4C2795 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2795
10.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2795#FFFFFF#000000##FFFFFF
##4C27951.0010.342.0310.34
#FFFFFF10.341.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004298
Deuteranopia (green-blind)
#003E93
Tritanopia (blue-blind)
#35445B
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4c2795;
/* rgb */ color: rgb(76, 39, 149);
/* oklch */ color: oklch(39.1% 0.168 292.2);
Tailwind
colors: {
  custom: {
    50: '#8565b5',
    500: '#4c2795',
    950: '#000000',
  },
}
SCSS
$custom: #4c2795;
$custom-light: #8565b5;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2795",
  "rgb": {
    "r": 76,
    "g": 39,
    "b": 149
  },
  "hsl": {
    "h": 260.182,
    "s": 58.511,
    "l": 36.863
  },
  "oklch": {
    "l": 0.39129,
    "c": 0.16775,
    "h": 292.2
  },
  "luminance": 0.05157
}

Semantic roles & 50–950 ramp

primary
#4C2795
secondary
#9BBB5D
accent
#E246AD
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #4C2795

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

Preview Lab → · Contrast checker → · Palette generator →

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