#4E20A0#4E20A0

#4E20A0 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.6% C 0.188 H 291.6°. Best body text is #FFFFFF at 10.30:1 contrast (WCAG AA passes).

Color values

HEX#4E20A0
RGBrgb(78, 32, 160)
HSLhsl(262, 67%, 38%)
HSVhsv(262, 80%, 63%)
CMYKcmyk(51.2%, 80%, 0%, 37.3%)
CIE-LABlab(27.27, 49.55, -60.72)
CIE-LCHlch(27.27, 78.37, 309.22°)
OKLaboklab(39.56% 0.0692 -0.1744)
OKLCHoklch(39.56% 0.188 291.6)
XYZxyz(10.0018, 5.1904, 33.7257)
Luminance0.0519 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E20A0 #72A020
analogous
#2032A0 #4E20A0 #8E20A0
triadic
#4E20A0 #A04E20 #20A04E
tetradic
#4E20A0 #A02032 #72A020 #20A08E
square
#4E20A0 #A02032 #72A020 #20A08E
split-complementary
#4E20A0 #A08E20 #32A020
monochromatic
#1C0C3A #35166D #4E20A0 #672AD3 #8B5CDE

Accessibility & contrast

On white

10.30
#4E20A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#4E20A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E20A0
10.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E20A0#FFFFFF#000000##FFFFFF
##4E20A01.0010.302.0410.30
#FFFFFF10.301.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.301.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4e20a0;
/* rgb */ color: rgb(78, 32, 160);
/* oklch */ color: oklch(39.6% 0.188 291.6);
Tailwind
colors: {
  custom: {
    50: '#8962bd',
    500: '#4e20a0',
    950: '#000000',
  },
}
SCSS
$custom: #4e20a0;
$custom-light: #8962bd;
$custom-dark: #000000;
JSON
{
  "hex": "#4e20a0",
  "rgb": {
    "r": 78,
    "g": 32,
    "b": 160
  },
  "hsl": {
    "h": 261.563,
    "s": 66.667,
    "l": 37.647
  },
  "oklch": {
    "l": 0.3956,
    "c": 0.18765,
    "h": 291.6
  },
  "luminance": 0.05191
}

Semantic roles & 50–950 ramp

primary
#4E20A0
secondary
#9DC359
accent
#EA3EAC
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0D0512
muted
#7D7A81

Preview Lab

Preview with #4E20A0

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

Preview Lab → · Contrast checker → · Palette generator →

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