#4C2391#4C2391

#4C2391 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.3% C 0.168 H 293.9°. Best body text is #FFFFFF at 10.73:1 contrast (WCAG AA passes).

Color values

HEX#4C2391
RGBrgb(76, 35, 145)
HSLhsl(262, 61%, 35%)
HSVhsv(262, 76%, 57%)
CMYKcmyk(47.6%, 75.9%, 0%, 43.1%)
CIE-LABlab(26.11, 43.77, -53.44)
CIE-LCHlch(26.11, 69.07, 309.32°)
OKLaboklab(38.26% 0.068 -0.1532)
OKLCHoklch(38.26% 0.168 293.9)
XYZxyz(8.6910, 4.7826, 27.2478)
Luminance0.0478 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2391 #689123
analogous
#233191 #4C2391 #832391
triadic
#4C2391 #914C23 #23914C
tetradic
#4C2391 #912331 #689123 #239183
square
#4C2391 #912331 #689123 #239183
split-complementary
#4C2391 #918323 #319123
monochromatic
#180B2E #321760 #4C2391 #662FC2 #8758D7

Accessibility & contrast

On white

10.73
#4C2391 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C2391
10.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2391#FFFFFF#000000##FFFFFF
##4C23911.0010.731.9610.73
#FFFFFF10.731.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F94
Deuteranopia (green-blind)
#003C8F
Tritanopia (blue-blind)
#374058
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #4c2391;
/* rgb */ color: rgb(76, 35, 145);
/* oklch */ color: oklch(38.3% 0.168 293.9);
Tailwind
colors: {
  custom: {
    50: '#8562b2',
    500: '#4c2391',
    950: '#000000',
  },
}
SCSS
$custom: #4c2391;
$custom-light: #8562b2;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2391",
  "rgb": {
    "r": 76,
    "g": 35,
    "b": 145
  },
  "hsl": {
    "h": 262.364,
    "s": 61.111,
    "l": 35.294
  },
  "oklch": {
    "l": 0.38262,
    "c": 0.1676,
    "h": 293.9
  },
  "luminance": 0.04783
}

Semantic roles & 50–950 ramp

primary
#4C2391
secondary
#95BB55
accent
#E444A8
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0511
muted
#7D7A80

Preview Lab

Preview with #4C2391

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

Preview Lab → · Contrast checker → · Palette generator →

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