#4E227A#4E227A

#4E227A is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.4% C 0.142 H 302.7°. Best body text is #FFFFFF at 11.45:1 contrast (WCAG AA passes).

Color values

HEX#4E227A
RGBrgb(78, 34, 122)
HSLhsl(270, 56%, 31%)
HSVhsv(270, 72%, 48%)
CMYKcmyk(36.1%, 72.1%, 0%, 52.2%)
CIE-LABlab(24.22, 38.44, -42.08)
CIE-LCHlch(24.22, 57.00, 312.41°)
OKLaboklab(36.37% 0.077 -0.1198)
OKLCHoklch(36.37% 0.142 302.7)
XYZxyz(7.2259, 4.1689, 18.8326)
Luminance0.0417 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E227A #4E7A22
analogous
#22227A #4E227A #7A227A
triadic
#4E227A #7A4E22 #227A4E
tetradic
#4E227A #7A2222 #4E7A22 #227A7A
square
#4E227A #7A2222 #4E7A22 #227A7A
split-complementary
#4E227A #7A7A22 #227A22
monochromatic
#11071A #2F154A #4E227A #6D2FAA #8B4ACD

Accessibility & contrast

On white

11.45
#4E227A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#4E227A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E227A
11.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E227A#FFFFFF#000000##FFFFFF
##4E227A1.0011.451.8311.45
#FFFFFF11.451.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00397D
Deuteranopia (green-blind)
#003978
Tritanopia (blue-blind)
#45374B
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #4e227a;
/* rgb */ color: rgb(78, 34, 122);
/* oklch */ color: oklch(36.4% 0.142 302.7);
Tailwind
colors: {
  custom: {
    50: '#8461a1',
    500: '#4e227a',
    950: '#000000',
  },
}
SCSS
$custom: #4e227a;
$custom-light: #8461a1;
$custom-dark: #000000;
JSON
{
  "hex": "#4e227a",
  "rgb": {
    "r": 78,
    "g": 34,
    "b": 122
  },
  "hsl": {
    "h": 270,
    "s": 56.41,
    "l": 30.588
  },
  "oklch": {
    "l": 0.36374,
    "c": 0.14236,
    "h": 302.7
  },
  "luminance": 0.04169
}

Semantic roles & 50–950 ramp

primary
#4E227A
secondary
#7CAD4B
accent
#E04894
background
#F8F5FA
surface
#EFEAF3
border
#CAC6CD
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4E227A

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

Preview Lab → · Contrast checker → · Palette generator →

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