#4E218A#4E218A

#4E218A is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.6% C 0.162 H 297.5°. Best body text is #FFFFFF at 11.00:1 contrast (WCAG AA passes).

Color values

HEX#4E218A
RGBrgb(78, 33, 138)
HSLhsl(266, 61%, 34%)
HSVhsv(266, 76%, 54%)
CMYKcmyk(43.5%, 76.1%, 0%, 45.9%)
CIE-LABlab(25.39, 43.18, -50.25)
CIE-LCHlch(25.39, 66.26, 310.67°)
OKLaboklab(37.62% 0.0747 -0.1438)
OKLCHoklch(37.62% 0.162 297.5)
XYZxyz(8.2720, 4.5422, 24.4807)
Luminance0.0454 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E218A #5D8A21
analogous
#21288A #4E218A #82218A
triadic
#4E218A #8A4E21 #218A4E
tetradic
#4E218A #8A2128 #5D8A21 #218A82
square
#4E218A #8A2128 #5D8A21 #218A82
split-complementary
#4E218A #8A8221 #288A21
monochromatic
#160927 #321559 #4E218A #6A2DBB #8950D5

Accessibility & contrast

On white

11.00
#4E218A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#4E218A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E218A
11.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E218A#FFFFFF#000000##FFFFFF
##4E218A1.0011.001.9111.00
#FFFFFF11.001.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8D
Deuteranopia (green-blind)
#003B88
Tritanopia (blue-blind)
#3F3C54
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #4e218a;
/* rgb */ color: rgb(78, 33, 138);
/* oklch */ color: oklch(37.6% 0.162 297.5);
Tailwind
colors: {
  custom: {
    50: '#8661ad',
    500: '#4e218a',
    950: '#000000',
  },
}
SCSS
$custom: #4e218a;
$custom-light: #8661ad;
$custom-dark: #000000;
JSON
{
  "hex": "#4e218a",
  "rgb": {
    "r": 78,
    "g": 33,
    "b": 138
  },
  "hsl": {
    "h": 265.714,
    "s": 61.404,
    "l": 33.529
  },
  "oklch": {
    "l": 0.37619,
    "c": 0.16201,
    "h": 297.5
  },
  "luminance": 0.04542
}

Semantic roles & 50–950 ramp

primary
#4E218A
secondary
#8BB94E
accent
#E5439F
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4E218A

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

Preview Lab → · Contrast checker → · Palette generator →

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