#4C2193#4C2193

#4C2193 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.2% C 0.172 H 293.7°. Best body text is #FFFFFF at 10.79:1 contrast (WCAG AA passes).

Color values

HEX#4C2193
RGBrgb(76, 33, 147)
HSLhsl(263, 63%, 35%)
HSVhsv(263, 78%, 58%)
CMYKcmyk(48.3%, 77.6%, 0%, 42.4%)
CIE-LABlab(25.95, 45.27, -54.92)
CIE-LCHlch(25.95, 71.18, 309.50°)
OKLaboklab(38.21% 0.0692 -0.1575)
OKLCHoklch(38.21% 0.172 293.7)
XYZxyz(8.7894, 4.7305, 28.0481)
Luminance0.0473 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2193 #689321
analogous
#212F93 #4C2193 #852193
triadic
#4C2193 #934C21 #21934C
tetradic
#4C2193 #93212F #689321 #219385
square
#4C2193 #93212F #689321 #219385
split-complementary
#4C2193 #938521 #2F9321
monochromatic
#180B2F #321661 #4C2193 #662CC5 #8755D9

Accessibility & contrast

On white

10.79
#4C2193 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#4C2193 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2193
10.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2193#FFFFFF#000000##FFFFFF
##4C21931.0010.791.9510.79
#FFFFFF10.791.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F96
Deuteranopia (green-blind)
#003B91
Tritanopia (blue-blind)
#364059
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #4c2193;
/* rgb */ color: rgb(76, 33, 147);
/* oklch */ color: oklch(38.2% 0.172 293.7);
Tailwind
colors: {
  custom: {
    50: '#8661b4',
    500: '#4c2193',
    950: '#000000',
  },
}
SCSS
$custom: #4c2193;
$custom-light: #8661b4;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2193",
  "rgb": {
    "r": 76,
    "g": 33,
    "b": 147
  },
  "hsl": {
    "h": 262.632,
    "s": 63.333,
    "l": 35.294
  },
  "oklch": {
    "l": 0.3821,
    "c": 0.17207,
    "h": 293.7
  },
  "luminance": 0.04731
}

Semantic roles & 50–950 ramp

primary
#4C2193
secondary
#95BD53
accent
#E641A8
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #4C2193

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

Preview Lab → · Contrast checker → · Palette generator →

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