#4E219E#4E219E

#4E219E is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.5% C 0.184 H 292.0°. Best body text is #FFFFFF at 10.32:1 contrast (WCAG AA passes).

Color values

HEX#4E219E
RGBrgb(78, 33, 158)
HSLhsl(262, 65%, 37%)
HSVhsv(262, 79%, 62%)
CMYKcmyk(50.6%, 79.1%, 0%, 38%)
CIE-LABlab(27.23, 48.57, -59.57)
CIE-LCHlch(27.23, 76.86, 309.19°)
OKLaboklab(39.47% 0.0691 -0.1711)
OKLCHoklch(39.47% 0.184 292)
XYZxyz(9.8556, 5.1757, 32.8208)
Luminance0.0518 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E219E #719E21
analogous
#21339E #4E219E #8D219E
triadic
#4E219E #9E4E21 #219E4E
tetradic
#4E219E #9E2133 #719E21 #219E8D
square
#4E219E #9E2133 #719E21 #219E8D
split-complementary
#4E219E #9E8D21 #339E21
monochromatic
#1C0C39 #35166B #4E219E #672CD1 #8B5CDD

Accessibility & contrast

On white

10.32
#4E219E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#4E219E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E219E
10.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E219E#FFFFFF#000000##FFFFFF
##4E219E1.0010.322.0410.32
#FFFFFF10.321.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A1
Deuteranopia (green-blind)
#003E9C
Tritanopia (blue-blind)
#33445F
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4e219e;
/* rgb */ color: rgb(78, 33, 158);
/* oklch */ color: oklch(39.5% 0.184 292.0);
Tailwind
colors: {
  custom: {
    50: '#8862bc',
    500: '#4e219e',
    950: '#000000',
  },
}
SCSS
$custom: #4e219e;
$custom-light: #8862bc;
$custom-dark: #000000;
JSON
{
  "hex": "#4e219e",
  "rgb": {
    "r": 78,
    "g": 33,
    "b": 158
  },
  "hsl": {
    "h": 261.6,
    "s": 65.445,
    "l": 37.451
  },
  "oklch": {
    "l": 0.39473,
    "c": 0.18449,
    "h": 292
  },
  "luminance": 0.05176
}

Semantic roles & 50–950 ramp

primary
#4E219E
secondary
#9CC159
accent
#E83FAC
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0512
muted
#7D7A81

Preview Lab

Preview with #4E219E

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

Preview Lab → · Contrast checker → · Palette generator →

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