#4E20A7#4E20A7

#4E20A7 is a dark, vivid violet. Relative luminance 0.054; OKLCH L 40.2% C 0.195 H 290.0°. Best body text is #FFFFFF at 10.05:1 contrast (WCAG AA passes).

Color values

HEX#4E20A7
RGBrgb(78, 32, 167)
HSLhsl(260, 68%, 39%)
HSVhsv(260, 81%, 65%)
CMYKcmyk(53.3%, 80.8%, 0%, 34.5%)
CIE-LABlab(27.96, 51.43, -63.83)
CIE-LCHlch(27.96, 81.97, 308.86°)
OKLaboklab(40.25% 0.0669 -0.1835)
OKLCHoklch(40.25% 0.195 290)
XYZxyz(10.6314, 5.4423, 37.0420)
Luminance0.0544 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E20A7 #79A720
analogous
#2036A7 #4E20A7 #9220A7
triadic
#4E20A7 #A74E20 #20A74E
tetradic
#4E20A7 #A72036 #79A720 #20A792
square
#4E20A7 #A72036 #79A720 #20A792
split-complementary
#4E20A7 #A79220 #36A720
monochromatic
#1E0C40 #361674 #4E20A7 #672DD7 #8C61E1

Accessibility & contrast

On white

10.05
#4E20A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#4E20A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E20A7
10.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E20A7#FFFFFF#000000##FFFFFF
##4E20A71.0010.052.0910.05
#FFFFFF10.051.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044AB
Deuteranopia (green-blind)
#003FA5
Tritanopia (blue-blind)
#2C4864
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #4e20a7;
/* rgb */ color: rgb(78, 32, 167);
/* oklch */ color: oklch(40.2% 0.195 290.0);
Tailwind
colors: {
  custom: {
    50: '#8a62c2',
    500: '#4e20a7',
    950: '#000000',
  },
}
SCSS
$custom: #4e20a7;
$custom-light: #8a62c2;
$custom-dark: #000000;
JSON
{
  "hex": "#4e20a7",
  "rgb": {
    "r": 78,
    "g": 32,
    "b": 167
  },
  "hsl": {
    "h": 260.444,
    "s": 67.839,
    "l": 39.02
  },
  "oklch": {
    "l": 0.40246,
    "c": 0.19534,
    "h": 290
  },
  "luminance": 0.05443
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4E20A7

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

Preview Lab → · Contrast checker → · Palette generator →

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