#4C2797#4C2797

#4C2797 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.3% C 0.170 H 291.7°. Best body text is #FFFFFF at 10.27:1 contrast (WCAG AA passes).

Color values

HEX#4C2797
RGBrgb(76, 39, 151)
HSLhsl(260, 59%, 37%)
HSVhsv(260, 74%, 59%)
CMYKcmyk(49.7%, 74.2%, 0%, 40.8%)
CIE-LABlab(27.36, 43.44, -55.08)
CIE-LCHlch(27.36, 70.15, 308.26°)
OKLaboklab(39.31% 0.0629 -0.1581)
OKLCHoklch(39.31% 0.17 291.7)
XYZxyz(9.2903, 5.2216, 29.7905)
Luminance0.0522 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2797 #729727
analogous
#273A97 #4C2797 #842797
triadic
#4C2797 #974C27 #27974C
tetradic
#4C2797 #97273A #729727 #279784
square
#4C2797 #97273A #729727 #279784
split-complementary
#4C2797 #978427 #3A9727
monochromatic
#1B0E36 #341A66 #4C2797 #6434C8 #8862D6

Accessibility & contrast

On white

10.27
#4C2797 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#4C2797 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2797
10.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2797#FFFFFF#000000##FFFFFF
##4C27971.0010.272.0410.27
#FFFFFF10.271.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429A
Deuteranopia (green-blind)
#003E95
Tritanopia (blue-blind)
#34455D
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4c2797;
/* rgb */ color: rgb(76, 39, 151);
/* oklch */ color: oklch(39.3% 0.170 291.7);
Tailwind
colors: {
  custom: {
    50: '#8665b7',
    500: '#4c2797',
    950: '#000000',
  },
}
SCSS
$custom: #4c2797;
$custom-light: #8665b7;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2797",
  "rgb": {
    "r": 76,
    "g": 39,
    "b": 151
  },
  "hsl": {
    "h": 259.821,
    "s": 58.947,
    "l": 37.255
  },
  "oklch": {
    "l": 0.39311,
    "c": 0.17012,
    "h": 291.7
  },
  "luminance": 0.05222
}

Semantic roles & 50–950 ramp

primary
#4C2797
secondary
#9DBC5E
accent
#E246AE
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #4C2797

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

Preview Lab → · Contrast checker → · Palette generator →

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