#4E20A8#4E20A8

#4E20A8 is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.3% C 0.196 H 289.8°. Best body text is #FFFFFF at 10.02:1 contrast (WCAG AA passes).

Color values

HEX#4E20A8
RGBrgb(78, 32, 168)
HSLhsl(260, 68%, 39%)
HSVhsv(260, 81%, 66%)
CMYKcmyk(53.6%, 81%, 0%, 34.1%)
CIE-LABlab(28.06, 51.70, -64.27)
CIE-LCHlch(28.06, 82.48, 308.81°)
OKLaboklab(40.35% 0.0666 -0.1848)
OKLCHoklch(40.35% 0.196 289.8)
XYZxyz(10.7242, 5.4794, 37.5307)
Luminance0.0548 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E20A8 #7AA820
analogous
#2036A8 #4E20A8 #9220A8
triadic
#4E20A8 #A84E20 #20A84E
tetradic
#4E20A8 #A82036 #7AA820 #20A892
square
#4E20A8 #A82036 #7AA820 #20A892
split-complementary
#4E20A8 #A89220 #36A820
monochromatic
#1E0C41 #361675 #4E20A8 #672ED7 #8D61E1

Accessibility & contrast

On white

10.02
#4E20A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E20A8
10.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E20A8#FFFFFF#000000##FFFFFF
##4E20A81.0010.022.1010.02
#FFFFFF10.021.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045AC
Deuteranopia (green-blind)
#003FA6
Tritanopia (blue-blind)
#2B4865
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #4e20a8;
/* rgb */ color: rgb(78, 32, 168);
/* oklch */ color: oklch(40.3% 0.196 289.8);
Tailwind
colors: {
  custom: {
    50: '#8a62c3',
    500: '#4e20a8',
    950: '#000000',
  },
}
SCSS
$custom: #4e20a8;
$custom-light: #8a62c3;
$custom-dark: #000000;
JSON
{
  "hex": "#4e20a8",
  "rgb": {
    "r": 78,
    "g": 32,
    "b": 168
  },
  "hsl": {
    "h": 260.294,
    "s": 68,
    "l": 39.216
  },
  "oklch": {
    "l": 0.40345,
    "c": 0.19644,
    "h": 289.8
  },
  "luminance": 0.0548
}

Semantic roles & 50–950 ramp

primary
#4E20A8
secondary
#A3C65E
accent
#EB3DB0
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0513
muted
#7E7A82

Preview Lab

Preview with #4E20A8

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

Preview Lab → · Contrast checker → · Palette generator →

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