#4D20A6#4D20A6

#4D20A6 is a dark, vivid violet. Relative luminance 0.054; OKLCH L 40.0% C 0.194 H 289.8°. Best body text is #FFFFFF at 10.13:1 contrast (WCAG AA passes).

Color values

HEX#4D20A6
RGBrgb(77, 32, 166)
HSLhsl(260, 68%, 39%)
HSVhsv(260, 81%, 65%)
CMYKcmyk(53.6%, 80.7%, 0%, 34.9%)
CIE-LABlab(27.75, 51.03, -63.58)
CIE-LCHlch(27.75, 81.52, 308.75°)
OKLaboklab(40.04% 0.0657 -0.1828)
OKLCHoklch(40.04% 0.194 289.8)
XYZxyz(10.4580, 5.3635, 36.5532)
Luminance0.0536 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D20A6 #79A620
analogous
#2036A6 #4D20A6 #9020A6
triadic
#4D20A6 #A64D20 #20A64D
tetradic
#4D20A6 #A62036 #79A620 #20A690
square
#4D20A6 #A62036 #79A620 #20A690
split-complementary
#4D20A6 #A69020 #36A620
monochromatic
#1D0C3F #351673 #4D20A6 #662DD6 #8B60E0

Accessibility & contrast

On white

10.13
#4D20A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#4D20A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D20A6
10.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D20A6#FFFFFF#000000##FFFFFF
##4D20A61.0010.132.0710.13
#FFFFFF10.131.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044AA
Deuteranopia (green-blind)
#003EA4
Tritanopia (blue-blind)
#2B4864
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4d20a6;
/* rgb */ color: rgb(77, 32, 166);
/* oklch */ color: oklch(40.0% 0.194 289.8);
Tailwind
colors: {
  custom: {
    50: '#8962c2',
    500: '#4d20a6',
    950: '#000000',
  },
}
SCSS
$custom: #4d20a6;
$custom-light: #8962c2;
$custom-dark: #000000;
JSON
{
  "hex": "#4d20a6",
  "rgb": {
    "r": 77,
    "g": 32,
    "b": 166
  },
  "hsl": {
    "h": 260.149,
    "s": 67.677,
    "l": 38.824
  },
  "oklch": {
    "l": 0.40042,
    "c": 0.19427,
    "h": 289.8
  },
  "luminance": 0.05364
}

Semantic roles & 50–950 ramp

primary
#4D20A6
secondary
#A2C55D
accent
#EB3DB0
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0512
muted
#7E7A81

Preview Lab

Preview with #4D20A6

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

Preview Lab → · Contrast checker → · Palette generator →

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