#4C2097#4C2097

#4C2097 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.5% C 0.178 H 292.8°. Best body text is #FFFFFF at 10.71:1 contrast (WCAG AA passes).

Color values

HEX#4C2097
RGBrgb(76, 32, 151)
HSLhsl(262, 65%, 36%)
HSVhsv(262, 79%, 59%)
CMYKcmyk(49.7%, 78.8%, 0%, 40.8%)
CIE-LABlab(26.17, 46.82, -57.03)
CIE-LCHlch(26.17, 73.79, 309.39°)
OKLaboklab(38.48% 0.0689 -0.1637)
OKLCHoklch(38.48% 0.178 292.8)
XYZxyz(9.0814, 4.8036, 29.7208)
Luminance0.0480 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2097 #6B9720
analogous
#202F97 #4C2097 #872097
triadic
#4C2097 #974C20 #20974C
tetradic
#4C2097 #97202F #6B9720 #209787
square
#4C2097 #97202F #6B9720 #209787
split-complementary
#4C2097 #978720 #2F9720
monochromatic
#190B32 #331564 #4C2097 #652BC9 #8756DB

Accessibility & contrast

On white

10.71
#4C2097 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#4C2097 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2097
10.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2097#FFFFFF#000000##FFFFFF
##4C20971.0010.711.9610.71
#FFFFFF10.711.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F9A
Deuteranopia (green-blind)
#003C95
Tritanopia (blue-blind)
#34415B
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #4c2097;
/* rgb */ color: rgb(76, 32, 151);
/* oklch */ color: oklch(38.5% 0.178 292.8);
Tailwind
colors: {
  custom: {
    50: '#8661b7',
    500: '#4c2097',
    950: '#000000',
  },
}
SCSS
$custom: #4c2097;
$custom-light: #8661b7;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2097",
  "rgb": {
    "r": 76,
    "g": 32,
    "b": 151
  },
  "hsl": {
    "h": 262.185,
    "s": 65.027,
    "l": 35.882
  },
  "oklch": {
    "l": 0.38475,
    "c": 0.17761,
    "h": 292.8
  },
  "luminance": 0.04804
}

Semantic roles & 50–950 ramp

primary
#4C2097
secondary
#97BF54
accent
#E840AA
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #4C2097

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

Preview Lab → · Contrast checker → · Palette generator →

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