#4C2195#4C2195

#4C2195 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.4% C 0.174 H 293.2°. Best body text is #FFFFFF at 10.72:1 contrast (WCAG AA passes).

Color values

HEX#4C2195
RGBrgb(76, 33, 149)
HSLhsl(262, 64%, 36%)
HSVhsv(262, 78%, 58%)
CMYKcmyk(49%, 77.9%, 0%, 41.6%)
CIE-LABlab(26.14, 45.82, -55.85)
CIE-LCHlch(26.14, 72.24, 309.37°)
OKLaboklab(38.4% 0.0686 -0.1603)
OKLCHoklch(38.4% 0.174 293.2)
XYZxyz(8.9477, 4.7938, 28.8818)
Luminance0.0479 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2195 #6A9521
analogous
#213095 #4C2195 #862195
triadic
#4C2195 #954C21 #21954C
tetradic
#4C2195 #952130 #6A9521 #219586
square
#4C2195 #952130 #6A9521 #219586
split-complementary
#4C2195 #958621 #309521
monochromatic
#190B31 #321663 #4C2195 #662CC7 #8757DA

Accessibility & contrast

On white

10.72
#4C2195 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C2195
10.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2195#FFFFFF#000000##FFFFFF
##4C21951.0010.721.9610.72
#FFFFFF10.721.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F98
Deuteranopia (green-blind)
#003C93
Tritanopia (blue-blind)
#35415A
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #4c2195;
/* rgb */ color: rgb(76, 33, 149);
/* oklch */ color: oklch(38.4% 0.174 293.2);
Tailwind
colors: {
  custom: {
    50: '#8661b5',
    500: '#4c2195',
    950: '#000000',
  },
}
SCSS
$custom: #4c2195;
$custom-light: #8661b5;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2195",
  "rgb": {
    "r": 76,
    "g": 33,
    "b": 149
  },
  "hsl": {
    "h": 262.241,
    "s": 63.736,
    "l": 35.686
  },
  "oklch": {
    "l": 0.38398,
    "c": 0.17434,
    "h": 293.2
  },
  "luminance": 0.04794
}

Semantic roles & 50–950 ramp

primary
#4C2195
secondary
#97BE54
accent
#E741A9
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #4C2195

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

Preview Lab → · Contrast checker → · Palette generator →

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