#4C20A0#4C20A0

#4C20A0 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.3% C 0.188 H 290.6°. Best body text is #FFFFFF at 10.39:1 contrast (WCAG AA passes).

Color values

HEX#4C20A0
RGBrgb(76, 32, 160)
HSLhsl(261, 67%, 38%)
HSVhsv(261, 80%, 63%)
CMYKcmyk(52.5%, 80%, 0%, 37.3%)
CIE-LABlab(27.04, 49.27, -61.11)
CIE-LCHlch(27.04, 78.50, 308.88°)
OKLaboklab(39.35% 0.0661 -0.1756)
OKLCHoklch(39.35% 0.188 290.6)
XYZxyz(9.8403, 5.1072, 33.7182)
Luminance0.0511 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C20A0 #74A020
analogous
#2034A0 #4C20A0 #8C20A0
triadic
#4C20A0 #A04C20 #20A04C
tetradic
#4C20A0 #A02034 #74A020 #20A08C
square
#4C20A0 #A02034 #74A020 #20A08C
split-complementary
#4C20A0 #A08C20 #34A020
monochromatic
#1C0C3A #34166D #4C20A0 #642AD3 #895CDE

Accessibility & contrast

On white

10.39
#4C20A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#4C20A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C20A0
10.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C20A0#FFFFFF#000000##FFFFFF
##4C20A01.0010.392.0210.39
#FFFFFF10.391.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A4
Deuteranopia (green-blind)
#003D9E
Tritanopia (blue-blind)
#2E4560
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4c20a0;
/* rgb */ color: rgb(76, 32, 160);
/* oklch */ color: oklch(39.3% 0.188 290.6);
Tailwind
colors: {
  custom: {
    50: '#8862bd',
    500: '#4c20a0',
    950: '#000000',
  },
}
SCSS
$custom: #4c20a0;
$custom-light: #8862bd;
$custom-dark: #000000;
JSON
{
  "hex": "#4c20a0",
  "rgb": {
    "r": 76,
    "g": 32,
    "b": 160
  },
  "hsl": {
    "h": 260.625,
    "s": 66.667,
    "l": 37.647
  },
  "oklch": {
    "l": 0.39345,
    "c": 0.18765,
    "h": 290.6
  },
  "luminance": 0.05108
}

Semantic roles & 50–950 ramp

primary
#4C20A0
secondary
#9EC359
accent
#EA3EAF
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0512
muted
#7D7A81

Preview Lab

Preview with #4C20A0

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

Preview Lab → · Contrast checker → · Palette generator →

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