#4E227C#4E227C

#4E227C is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.5% C 0.145 H 302.0°. Best body text is #FFFFFF at 11.39:1 contrast (WCAG AA passes).

Color values

HEX#4E227C
RGBrgb(78, 34, 124)
HSLhsl(269, 57%, 31%)
HSVhsv(269, 73%, 49%)
CMYKcmyk(37.1%, 72.6%, 0%, 51.4%)
CIE-LABlab(24.38, 38.97, -43.09)
CIE-LCHlch(24.38, 58.10, 312.12°)
OKLaboklab(36.54% 0.0766 -0.1227)
OKLCHoklch(36.54% 0.145 302)
XYZxyz(7.3511, 4.2190, 19.4919)
Luminance0.0422 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E227C #507C22
analogous
#22237C #4E227C #7B227C
triadic
#4E227C #7C4E22 #227C4E
tetradic
#4E227C #7C2223 #507C22 #227C7B
square
#4E227C #7C2223 #507C22 #227C7B
split-complementary
#4E227C #7C7B22 #237C22
monochromatic
#12081C #30154C #4E227C #6C2FAC #8B4BCE

Accessibility & contrast

On white

11.39
#4E227C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#4E227C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E227C
11.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E227C#FFFFFF#000000##FFFFFF
##4E227C1.0011.391.8411.39
#FFFFFF11.391.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00397F
Deuteranopia (green-blind)
#003A7A
Tritanopia (blue-blind)
#44374C
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #4e227c;
/* rgb */ color: rgb(78, 34, 124);
/* oklch */ color: oklch(36.5% 0.145 302.0);
Tailwind
colors: {
  custom: {
    50: '#8461a3',
    500: '#4e227c',
    950: '#000000',
  },
}
SCSS
$custom: #4e227c;
$custom-light: #8461a3;
$custom-dark: #000000;
JSON
{
  "hex": "#4e227c",
  "rgb": {
    "r": 78,
    "g": 34,
    "b": 124
  },
  "hsl": {
    "h": 269.333,
    "s": 56.962,
    "l": 30.98
  },
  "oklch": {
    "l": 0.36538,
    "c": 0.14469,
    "h": 302
  },
  "luminance": 0.04219
}

Semantic roles & 50–950 ramp

primary
#4E227C
secondary
#7EAF4B
accent
#E04896
background
#F8F5FA
surface
#EFEAF4
border
#CAC6CE
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4E227C

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

Preview Lab → · Contrast checker → · Palette generator →

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