#4C2697#4C2697

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

Color values

HEX#4C2697
RGBrgb(76, 38, 151)
HSLhsl(260, 60%, 37%)
HSVhsv(260, 75%, 59%)
CMYKcmyk(49.7%, 74.8%, 0%, 40.8%)
CIE-LABlab(27.18, 43.95, -55.38)
CIE-LCHlch(27.18, 70.70, 308.43°)
OKLaboklab(39.18% 0.0638 -0.1589)
OKLCHoklch(39.18% 0.171 291.9)
XYZxyz(9.2579, 5.1568, 29.7797)
Luminance0.0516 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2697 #719726
analogous
#263997 #4C2697 #852697
triadic
#4C2697 #974C26 #26974C
tetradic
#4C2697 #972639 #719726 #269785
square
#4C2697 #972639 #719726 #269785
split-complementary
#4C2697 #978526 #399726
monochromatic
#1B0D35 #331A66 #4C2697 #6532C8 #8860D7

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4C2697#FFFFFF#000000##FFFFFF
##4C26971.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)
#00429A
Deuteranopia (green-blind)
#003E95
Tritanopia (blue-blind)
#34445C
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4c2697;
/* rgb */ color: rgb(76, 38, 151);
/* oklch */ color: oklch(39.2% 0.171 291.9);
Tailwind
colors: {
  custom: {
    50: '#8664b7',
    500: '#4c2697',
    950: '#000000',
  },
}
SCSS
$custom: #4c2697;
$custom-light: #8664b7;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2697",
  "rgb": {
    "r": 76,
    "g": 38,
    "b": 151
  },
  "hsl": {
    "h": 260.177,
    "s": 59.788,
    "l": 37.059
  },
  "oklch": {
    "l": 0.39183,
    "c": 0.17125,
    "h": 291.9
  },
  "luminance": 0.05157
}

Semantic roles & 50–950 ramp

primary
#4C2697
secondary
#9CBC5C
accent
#E345AE
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #4C2697

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

Preview Lab → · Contrast checker → · Palette generator →

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