#4C20B3#4C20B3

#4C20B3 is a dark, highly saturated violet. Relative luminance 0.058; OKLCH L 41.3% C 0.209 H 286.6°. Best body text is #FFFFFF at 9.70:1 contrast (WCAG AA passes).

Color values

HEX#4C20B3
RGBrgb(76, 32, 179)
HSLhsl(258, 70%, 41%)
HSVhsv(258, 82%, 70%)
CMYKcmyk(57.5%, 82.1%, 0%, 29.8%)
CIE-LABlab(28.96, 54.43, -69.38)
CIE-LCHlch(28.96, 88.19, 308.11°)
OKLaboklab(41.25% 0.0597 -0.1998)
OKLCHoklch(41.25% 0.209 286.6)
XYZxyz(11.6312, 5.8235, 43.1502)
Luminance0.0582 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C20B3 #87B320
analogous
#203EB3 #4C20B3 #9620B3
triadic
#4C20B3 #B34C20 #20B34C
tetradic
#4C20B3 #B3203E #87B320 #20B396
square
#4C20B3 #B3203E #87B320 #20B396
split-complementary
#4C20B3 #B39620 #3EB320
monochromatic
#200D4B #36177F #4C20B3 #6735DB #8E69E4

Accessibility & contrast

On white

9.70
#4C20B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#4C20B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C20B3
9.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C20B3#FFFFFF#000000##FFFFFF
##4C20B31.009.702.169.70
#FFFFFF9.701.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048B7
Deuteranopia (green-blind)
#0040B0
Tritanopia (blue-blind)
#184D6B
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4c20b3;
/* rgb */ color: rgb(76, 32, 179);
/* oklch */ color: oklch(41.3% 0.209 286.6);
Tailwind
colors: {
  custom: {
    50: '#8b63cb',
    500: '#4c20b3',
    950: '#000000',
  },
}
SCSS
$custom: #4c20b3;
$custom-light: #8b63cb;
$custom-dark: #000000;
JSON
{
  "hex": "#4c20b3",
  "rgb": {
    "r": 76,
    "g": 32,
    "b": 179
  },
  "hsl": {
    "h": 257.959,
    "s": 69.668,
    "l": 41.373
  },
  "oklch": {
    "l": 0.41254,
    "c": 0.20854,
    "h": 286.6
  },
  "luminance": 0.05824
}

Semantic roles & 50–950 ramp

primary
#4C20B3
secondary
#ACCA65
accent
#EC3BB7
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #4C20B3

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

Preview Lab → · Contrast checker → · Palette generator →

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