#4D20A0#4D20A0

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

Color values

HEX#4D20A0
RGBrgb(77, 32, 160)
HSLhsl(261, 67%, 38%)
HSVhsv(261, 80%, 63%)
CMYKcmyk(51.9%, 80%, 0%, 37.3%)
CIE-LABlab(27.15, 49.41, -60.91)
CIE-LCHlch(27.15, 78.43, 309.05°)
OKLaboklab(39.45% 0.0676 -0.175)
OKLCHoklch(39.45% 0.188 291.1)
XYZxyz(9.9204, 5.1485, 33.7219)
Luminance0.0515 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D20A0 #73A020
analogous
#2033A0 #4D20A0 #8D20A0
triadic
#4D20A0 #A04D20 #20A04D
tetradic
#4D20A0 #A02033 #73A020 #20A08D
square
#4D20A0 #A02033 #73A020 #20A08D
split-complementary
#4D20A0 #A08D20 #33A020
monochromatic
#1C0C3A #34166D #4D20A0 #662AD3 #8A5CDE

Accessibility & contrast

On white

10.35
#4D20A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#4D20A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D20A0
10.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D20A0#FFFFFF#000000##FFFFFF
##4D20A01.0010.352.0310.35
#FFFFFF10.351.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.351.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4d20a0;
/* rgb */ color: rgb(77, 32, 160);
/* oklch */ color: oklch(39.5% 0.188 291.1);
Tailwind
colors: {
  custom: {
    50: '#8862bd',
    500: '#4d20a0',
    950: '#000000',
  },
}
SCSS
$custom: #4d20a0;
$custom-light: #8862bd;
$custom-dark: #000000;
JSON
{
  "hex": "#4d20a0",
  "rgb": {
    "r": 77,
    "g": 32,
    "b": 160
  },
  "hsl": {
    "h": 261.094,
    "s": 66.667,
    "l": 37.647
  },
  "oklch": {
    "l": 0.39452,
    "c": 0.18765,
    "h": 291.1
  },
  "luminance": 0.05149
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4D20A0

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

Preview Lab → · Contrast checker → · Palette generator →

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