#4E207A#4E207A

#4E207A is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.1% C 0.145 H 303.1°. Best body text is #FFFFFF at 11.59:1 contrast (WCAG AA passes).

Color values

HEX#4E207A
RGBrgb(78, 32, 122)
HSLhsl(271, 58%, 30%)
HSVhsv(271, 74%, 48%)
CMYKcmyk(36.1%, 73.8%, 0%, 52.2%)
CIE-LABlab(23.86, 39.45, -42.67)
CIE-LCHlch(23.86, 58.11, 312.76°)
OKLaboklab(36.12% 0.0792 -0.1215)
OKLCHoklch(36.12% 0.145 303.1)
XYZxyz(7.1704, 4.0579, 18.8141)
Luminance0.0406 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E207A #4C7A20
analogous
#21207A #4E207A #7A2079
triadic
#4E207A #7A4E20 #207A4E
tetradic
#4E207A #7A2120 #4C7A20 #20797A
square
#4E207A #7A2120 #4C7A20 #20797A
split-complementary
#4E207A #797A20 #207A21
monochromatic
#100719 #2F134A #4E207A #6D2DAA #8C46CE

Accessibility & contrast

On white

11.59
#4E207A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#4E207A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E207A
11.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E207A#FFFFFF#000000##FFFFFF
##4E207A1.0011.591.8111.59
#FFFFFF11.591.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387D
Deuteranopia (green-blind)
#003978
Tritanopia (blue-blind)
#45354B
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4e207a;
/* rgb */ color: rgb(78, 32, 122);
/* oklch */ color: oklch(36.1% 0.145 303.1);
Tailwind
colors: {
  custom: {
    50: '#8460a1',
    500: '#4e207a',
    950: '#000000',
  },
}
SCSS
$custom: #4e207a;
$custom-light: #8460a1;
$custom-dark: #000000;
JSON
{
  "hex": "#4e207a",
  "rgb": {
    "r": 78,
    "g": 32,
    "b": 122
  },
  "hsl": {
    "h": 270.667,
    "s": 58.442,
    "l": 30.196
  },
  "oklch": {
    "l": 0.36117,
    "c": 0.145,
    "h": 303.1
  },
  "luminance": 0.04058
}

Semantic roles & 50–950 ramp

primary
#4E207A
secondary
#7AAD49
accent
#E24692
background
#F8F5FA
surface
#EFEAF3
border
#CAC6CD
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4E207A

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

Preview Lab → · Contrast checker → · Palette generator →

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