#4C2A90#4C2A90

#4C2A90 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.1% C 0.158 H 292.9°. Best body text is #FFFFFF at 10.29:1 contrast (WCAG AA passes).

Color values

HEX#4C2A90
RGBrgb(76, 42, 144)
HSLhsl(260, 55%, 36%)
HSVhsv(260, 71%, 56%)
CMYKcmyk(47.2%, 70.8%, 0%, 43.5%)
CIE-LABlab(27.31, 39.85, -50.85)
CIE-LCHlch(27.31, 64.60, 308.09°)
OKLaboklab(39.09% 0.0615 -0.1456)
OKLCHoklch(39.09% 0.158 292.9)
XYZxyz(8.8411, 5.2058, 26.9191)
Luminance0.0521 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2A90 #6E902A
analogous
#2A3B90 #4C2A90 #7F2A90
triadic
#4C2A90 #904C2A #2A904C
tetradic
#4C2A90 #902A3B #6E902A #2A907F
square
#4C2A90 #902A3B #6E902A #2A907F
split-complementary
#4C2A90 #907F2A #3B902A
monochromatic
#1A0E31 #331C61 #4C2A90 #6538BF #8863D1

Accessibility & contrast

On white

10.29
#4C2A90 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#4C2A90 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2A90
10.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2A90#FFFFFF#000000##FFFFFF
##4C2A901.0010.292.0410.29
#FFFFFF10.291.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004293
Deuteranopia (green-blind)
#003F8E
Tritanopia (blue-blind)
#38445A
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4c2a90;
/* rgb */ color: rgb(76, 42, 144);
/* oklch */ color: oklch(39.1% 0.158 292.9);
Tailwind
colors: {
  custom: {
    50: '#8566b1',
    500: '#4c2a90',
    950: '#000000',
  },
}
SCSS
$custom: #4c2a90;
$custom-light: #8566b1;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2a90",
  "rgb": {
    "r": 76,
    "g": 42,
    "b": 144
  },
  "hsl": {
    "h": 260,
    "s": 54.839,
    "l": 36.471
  },
  "oklch": {
    "l": 0.3909,
    "c": 0.15809,
    "h": 292.9
  },
  "luminance": 0.05206
}

Semantic roles & 50–950 ramp

primary
#4C2A90
secondary
#9AB75E
accent
#DE4AAD
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #4C2A90

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

Preview Lab → · Contrast checker → · Palette generator →

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