#4E227E#4E227E

#4E227E is a dark, vivid violet. Relative luminance 0.043; OKLCH L 36.7% C 0.147 H 301.3°. Best body text is #FFFFFF at 11.33:1 contrast (WCAG AA passes).

Color values

HEX#4E227E
RGBrgb(78, 34, 126)
HSLhsl(269, 58%, 31%)
HSVhsv(269, 73%, 49%)
CMYKcmyk(38.1%, 73%, 0%, 50.6%)
CIE-LABlab(24.55, 39.49, -44.10)
CIE-LCHlch(24.55, 59.20, 311.85°)
OKLaboklab(36.71% 0.0763 -0.1257)
OKLCHoklch(36.71% 0.147 301.3)
XYZxyz(7.4789, 4.2701, 20.1648)
Luminance0.0427 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E227E #527E22
analogous
#22247E #4E227E #7C227E
triadic
#4E227E #7E4E22 #227E4E
tetradic
#4E227E #7E2224 #527E22 #227E7C
square
#4E227E #7E2224 #527E22 #227E7C
split-complementary
#4E227E #7E7C22 #247E22
monochromatic
#12081E #30154E #4E227E #6C2FAE #8A4CCF

Accessibility & contrast

On white

11.33
#4E227E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#4E227E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E227E
11.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E227E#FFFFFF#000000##FFFFFF
##4E227E1.0011.331.8511.33
#FFFFFF11.331.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A81
Deuteranopia (green-blind)
#003A7C
Tritanopia (blue-blind)
#44384D
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #4e227e;
/* rgb */ color: rgb(78, 34, 126);
/* oklch */ color: oklch(36.7% 0.147 301.3);
Tailwind
colors: {
  custom: {
    50: '#8461a4',
    500: '#4e227e',
    950: '#000000',
  },
}
SCSS
$custom: #4e227e;
$custom-light: #8461a4;
$custom-dark: #000000;
JSON
{
  "hex": "#4e227e",
  "rgb": {
    "r": 78,
    "g": 34,
    "b": 126
  },
  "hsl": {
    "h": 268.696,
    "s": 57.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.36705,
    "c": 0.14701,
    "h": 301.3
  },
  "luminance": 0.0427
}

Semantic roles & 50–950 ramp

primary
#4E227E
secondary
#80B14B
accent
#E14797
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4E227E

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

Preview Lab → · Contrast checker → · Palette generator →

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