#4E227D#4E227D

#4E227D is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.6% C 0.146 H 301.6°. Best body text is #FFFFFF at 11.36:1 contrast (WCAG AA passes).

Color values

HEX#4E227D
RGBrgb(78, 34, 125)
HSLhsl(269, 57%, 31%)
HSVhsv(269, 73%, 49%)
CMYKcmyk(37.6%, 72.8%, 0%, 51%)
CIE-LABlab(24.46, 39.23, -43.60)
CIE-LCHlch(24.46, 58.65, 311.98°)
OKLaboklab(36.62% 0.0765 -0.1242)
OKLCHoklch(36.62% 0.146 301.6)
XYZxyz(7.4147, 4.2444, 19.8267)
Luminance0.0424 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E227D #517D22
analogous
#22237D #4E227D #7B227D
triadic
#4E227D #7D4E22 #227D4E
tetradic
#4E227D #7D2223 #517D22 #227D7B
square
#4E227D #7D2223 #517D22 #227D7B
split-complementary
#4E227D #7D7B22 #237D22
monochromatic
#12081D #30154D #4E227D #6C2FAD #8B4BCE

Accessibility & contrast

On white

11.36
#4E227D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E227D
11.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E227D#FFFFFF#000000##FFFFFF
##4E227D1.0011.361.8511.36
#FFFFFF11.361.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.361.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4e227d;
/* rgb */ color: rgb(78, 34, 125);
/* oklch */ color: oklch(36.6% 0.146 301.6);
Tailwind
colors: {
  custom: {
    50: '#8461a3',
    500: '#4e227d',
    950: '#000000',
  },
}
SCSS
$custom: #4e227d;
$custom-light: #8461a3;
$custom-dark: #000000;
JSON
{
  "hex": "#4e227d",
  "rgb": {
    "r": 78,
    "g": 34,
    "b": 125
  },
  "hsl": {
    "h": 269.011,
    "s": 57.233,
    "l": 31.176
  },
  "oklch": {
    "l": 0.36621,
    "c": 0.14585,
    "h": 301.6
  },
  "luminance": 0.04244
}

Semantic roles & 50–950 ramp

primary
#4E227D
secondary
#7FB04B
accent
#E04796
background
#F8F5FA
surface
#EFEAF4
border
#CAC6CE
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4E227D

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

Preview Lab → · Contrast checker → · Palette generator →

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