#4C2291#4C2291

#4C2291 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.1% C 0.169 H 294.1°. Best body text is #FFFFFF at 10.80:1 contrast (WCAG AA passes).

Color values

HEX#4C2291
RGBrgb(76, 34, 145)
HSLhsl(263, 62%, 35%)
HSVhsv(263, 77%, 57%)
CMYKcmyk(47.6%, 76.6%, 0%, 43.1%)
CIE-LABlab(25.94, 44.25, -53.72)
CIE-LCHlch(25.94, 69.60, 309.48°)
OKLaboklab(38.14% 0.0689 -0.154)
OKLCHoklch(38.14% 0.169 294.1)
XYZxyz(8.6620, 4.7246, 27.2381)
Luminance0.0473 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2291 #679122
analogous
#222F91 #4C2291 #842291
triadic
#4C2291 #914C22 #22914C
tetradic
#4C2291 #91222F #679122 #229184
square
#4C2291 #91222F #679122 #229184
split-complementary
#4C2291 #918422 #2F9122
monochromatic
#180B2E #32165F #4C2291 #662EC3 #8756D7

Accessibility & contrast

On white

10.80
#4C2291 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C2291
10.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2291#FFFFFF#000000##FFFFFF
##4C22911.0010.801.9510.80
#FFFFFF10.801.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F94
Deuteranopia (green-blind)
#003B8F
Tritanopia (blue-blind)
#384058
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #4c2291;
/* rgb */ color: rgb(76, 34, 145);
/* oklch */ color: oklch(38.1% 0.169 294.1);
Tailwind
colors: {
  custom: {
    50: '#8562b2',
    500: '#4c2291',
    950: '#000000',
  },
}
SCSS
$custom: #4c2291;
$custom-light: #8562b2;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2291",
  "rgb": {
    "r": 76,
    "g": 34,
    "b": 145
  },
  "hsl": {
    "h": 262.703,
    "s": 62.011,
    "l": 35.098
  },
  "oklch": {
    "l": 0.38141,
    "c": 0.16872,
    "h": 294.1
  },
  "luminance": 0.04725
}

Semantic roles & 50–950 ramp

primary
#4C2291
secondary
#94BB53
accent
#E543A8
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0511
muted
#7D7A80

Preview Lab

Preview with #4C2291

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

Preview Lab → · Contrast checker → · Palette generator →

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