#4E227B#4E227B

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

Color values

HEX#4E227B
RGBrgb(78, 34, 123)
HSLhsl(270, 57%, 31%)
HSVhsv(270, 72%, 48%)
CMYKcmyk(36.6%, 72.4%, 0%, 51.8%)
CIE-LABlab(24.30, 38.71, -42.59)
CIE-LCHlch(24.30, 57.55, 312.26°)
OKLaboklab(36.46% 0.0768 -0.1212)
OKLCHoklch(36.46% 0.144 302.4)
XYZxyz(7.2882, 4.1938, 19.1606)
Luminance0.0419 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E227B #4F7B22
analogous
#22227B #4E227B #7A227B
triadic
#4E227B #7B4E22 #227B4E
tetradic
#4E227B #7B2222 #4F7B22 #227B7A
square
#4E227B #7B2222 #4F7B22 #227B7A
split-complementary
#4E227B #7B7A22 #227B22
monochromatic
#11071B #30154B #4E227B #6C2FAB #8B4ACD

Accessibility & contrast

On white

11.42
#4E227B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E227B
11.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E227B#FFFFFF#000000##FFFFFF
##4E227B1.0011.421.8411.42
#FFFFFF11.421.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00397E
Deuteranopia (green-blind)
#003979
Tritanopia (blue-blind)
#45374C
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #4e227b;
/* rgb */ color: rgb(78, 34, 123);
/* oklch */ color: oklch(36.5% 0.144 302.4);
Tailwind
colors: {
  custom: {
    50: '#8461a2',
    500: '#4e227b',
    950: '#000000',
  },
}
SCSS
$custom: #4e227b;
$custom-light: #8461a2;
$custom-dark: #000000;
JSON
{
  "hex": "#4e227b",
  "rgb": {
    "r": 78,
    "g": 34,
    "b": 123
  },
  "hsl": {
    "h": 269.663,
    "s": 56.688,
    "l": 30.784
  },
  "oklch": {
    "l": 0.36456,
    "c": 0.14353,
    "h": 302.4
  },
  "luminance": 0.04194
}

Semantic roles & 50–950 ramp

primary
#4E227B
secondary
#7DAE4B
accent
#E04895
background
#F8F5FA
surface
#EFEAF3
border
#CAC6CD
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4E227B

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

Preview Lab → · Contrast checker → · Palette generator →

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