#4C2197#4C2197

#4C2197 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.6% C 0.177 H 292.7°. Best body text is #FFFFFF at 10.65:1 contrast (WCAG AA passes).

Color values

HEX#4C2197
RGBrgb(76, 33, 151)
HSLhsl(262, 64%, 36%)
HSVhsv(262, 78%, 59%)
CMYKcmyk(49.7%, 78.1%, 0%, 40.8%)
CIE-LABlab(26.33, 46.37, -56.77)
CIE-LCHlch(26.33, 73.30, 309.24°)
OKLaboklab(38.59% 0.0681 -0.163)
OKLCHoklch(38.59% 0.177 292.7)
XYZxyz(9.1087, 4.8583, 29.7300)
Luminance0.0486 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2197 #6C9721
analogous
#213197 #4C2197 #872197
triadic
#4C2197 #974C21 #21974C
tetradic
#4C2197 #972131 #6C9721 #219787
square
#4C2197 #972131 #6C9721 #219787
split-complementary
#4C2197 #978721 #319721
monochromatic
#190B33 #331665 #4C2197 #652CC9 #8758DA

Accessibility & contrast

On white

10.65
#4C2197 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#4C2197 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2197
10.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2197#FFFFFF#000000##FFFFFF
##4C21971.0010.651.9710.65
#FFFFFF10.651.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00409A
Deuteranopia (green-blind)
#003C95
Tritanopia (blue-blind)
#34425B
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #4c2197;
/* rgb */ color: rgb(76, 33, 151);
/* oklch */ color: oklch(38.6% 0.177 292.7);
Tailwind
colors: {
  custom: {
    50: '#8662b7',
    500: '#4c2197',
    950: '#000000',
  },
}
SCSS
$custom: #4c2197;
$custom-light: #8662b7;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2197",
  "rgb": {
    "r": 76,
    "g": 33,
    "b": 151
  },
  "hsl": {
    "h": 261.864,
    "s": 64.13,
    "l": 36.078
  },
  "oklch": {
    "l": 0.38587,
    "c": 0.1766,
    "h": 292.7
  },
  "luminance": 0.04859
}

Semantic roles & 50–950 ramp

primary
#4C2197
secondary
#98BE55
accent
#E741AA
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0511
muted
#7D7A80

Preview Lab

Preview with #4C2197

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

Preview Lab → · Contrast checker → · Palette generator →

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