#4E20A9#4E20A9

#4E20A9 is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.4% C 0.198 H 289.6°. Best body text is #FFFFFF at 9.98:1 contrast (WCAG AA passes).

Color values

HEX#4E20A9
RGBrgb(78, 32, 169)
HSLhsl(260, 68%, 39%)
HSVhsv(260, 81%, 66%)
CMYKcmyk(53.8%, 81.1%, 0%, 33.7%)
CIE-LABlab(28.16, 51.97, -64.70)
CIE-LCHlch(28.16, 82.99, 308.77°)
OKLaboklab(40.44% 0.0662 -0.1861)
OKLCHoklch(40.44% 0.198 289.6)
XYZxyz(10.8177, 5.5168, 38.0233)
Luminance0.0552 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E20A9 #7BA920
analogous
#2037A9 #4E20A9 #9320A9
triadic
#4E20A9 #A94E20 #20A94E
tetradic
#4E20A9 #A92037 #7BA920 #20A993
square
#4E20A9 #A92037 #7BA920 #20A993
split-complementary
#4E20A9 #A99320 #37A920
monochromatic
#1F0D42 #361676 #4E20A9 #672FD8 #8D62E1

Accessibility & contrast

On white

9.98
#4E20A9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#4E20A9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E20A9
9.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E20A9#FFFFFF#000000##FFFFFF
##4E20A91.009.982.109.98
#FFFFFF9.981.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF9.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045AD
Deuteranopia (green-blind)
#003FA7
Tritanopia (blue-blind)
#2A4965
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #4e20a9;
/* rgb */ color: rgb(78, 32, 169);
/* oklch */ color: oklch(40.4% 0.198 289.6);
Tailwind
colors: {
  custom: {
    50: '#8a62c4',
    500: '#4e20a9',
    950: '#000000',
  },
}
SCSS
$custom: #4e20a9;
$custom-light: #8a62c4;
$custom-dark: #000000;
JSON
{
  "hex": "#4e20a9",
  "rgb": {
    "r": 78,
    "g": 32,
    "b": 169
  },
  "hsl": {
    "h": 260.146,
    "s": 68.159,
    "l": 39.412
  },
  "oklch": {
    "l": 0.40444,
    "c": 0.19754,
    "h": 289.6
  },
  "luminance": 0.05517
}

Semantic roles & 50–950 ramp

primary
#4E20A9
secondary
#A3C65F
accent
#EB3DB1
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0513
muted
#7E7A82

Preview Lab

Preview with #4E20A9

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

Preview Lab → · Contrast checker → · Palette generator →

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