#4E227F#4E227F

#4E227F is a dark, vivid violet. Relative luminance 0.043; OKLCH L 36.8% C 0.148 H 300.9°. Best body text is #FFFFFF at 11.30:1 contrast (WCAG AA passes).

Color values

HEX#4E227F
RGBrgb(78, 34, 127)
HSLhsl(268, 58%, 32%)
HSVhsv(268, 73%, 50%)
CMYKcmyk(38.6%, 73.2%, 0%, 50.2%)
CIE-LABlab(24.63, 39.76, -44.59)
CIE-LCHlch(24.63, 59.74, 311.72°)
OKLaboklab(36.79% 0.0761 -0.1271)
OKLCHoklch(36.79% 0.148 300.9)
XYZxyz(7.5437, 4.2960, 20.5063)
Luminance0.0430 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E227F #537F22
analogous
#22257F #4E227F #7D227F
triadic
#4E227F #7F4E22 #227F4E
tetradic
#4E227F #7F2225 #537F22 #227F7D
square
#4E227F #7F2225 #537F22 #227F7D
split-complementary
#4E227F #7F7D22 #257F22
monochromatic
#13081E #30154F #4E227F #6C2FAF #8A4CCF

Accessibility & contrast

On white

11.30
#4E227F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#4E227F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E227F
11.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E227F#FFFFFF#000000##FFFFFF
##4E227F1.0011.301.8611.30
#FFFFFF11.301.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A82
Deuteranopia (green-blind)
#003A7D
Tritanopia (blue-blind)
#43394E
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #4e227f;
/* rgb */ color: rgb(78, 34, 127);
/* oklch */ color: oklch(36.8% 0.148 300.9);
Tailwind
colors: {
  custom: {
    50: '#8461a5',
    500: '#4e227f',
    950: '#000000',
  },
}
SCSS
$custom: #4e227f;
$custom-light: #8461a5;
$custom-dark: #000000;
JSON
{
  "hex": "#4e227f",
  "rgb": {
    "r": 78,
    "g": 34,
    "b": 127
  },
  "hsl": {
    "h": 268.387,
    "s": 57.764,
    "l": 31.569
  },
  "oklch": {
    "l": 0.36789,
    "c": 0.14817,
    "h": 300.9
  },
  "luminance": 0.04296
}

Semantic roles & 50–950 ramp

primary
#4E227F
secondary
#81B24B
accent
#E14798
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4E227F

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

Preview Lab → · Contrast checker → · Palette generator →

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