#4E216F#4E216F

#4E216F is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.4% C 0.131 H 307.4°. Best body text is #FFFFFF at 11.86:1 contrast (WCAG AA passes).

Color values

HEX#4E216F
RGBrgb(78, 33, 111)
HSLhsl(275, 54%, 28%)
HSVhsv(275, 70%, 44%)
CMYKcmyk(29.7%, 70.3%, 0%, 56.5%)
CIE-LABlab(23.19, 36.13, -36.72)
CIE-LCHlch(23.19, 51.51, 314.54°)
OKLaboklab(35.36% 0.0796 -0.104)
OKLCHoklch(35.36% 0.131 307.4)
XYZxyz(6.5544, 3.8552, 15.4347)
Luminance0.0386 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E216F #426F21
analogous
#27216F #4E216F #6F2169
triadic
#4E216F #6F4E21 #216F4E
tetradic
#4E216F #6F2721 #426F21 #21696F
square
#4E216F #6F2721 #426F21 #21696F
split-complementary
#4E216F #696F21 #216F27
monochromatic
#110718 #2D1340 #4E216F #6F2F9E #8F43C7

Accessibility & contrast

On white

11.86
#4E216F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#4E216F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E216F
11.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E216F#FFFFFF#000000##FFFFFF
##4E216F1.0011.861.7711.86
#FFFFFF11.861.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003671
Deuteranopia (green-blind)
#0F386D
Tritanopia (blue-blind)
#493245
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #4e216f;
/* rgb */ color: rgb(78, 33, 111);
/* oklch */ color: oklch(35.4% 0.131 307.4);
Tailwind
colors: {
  custom: {
    50: '#836099',
    500: '#4e216f',
    950: '#000000',
  },
}
SCSS
$custom: #4e216f;
$custom-light: #836099;
$custom-dark: #000000;
JSON
{
  "hex": "#4e216f",
  "rgb": {
    "r": 78,
    "g": 33,
    "b": 111
  },
  "hsl": {
    "h": 274.615,
    "s": 54.167,
    "l": 28.235
  },
  "oklch": {
    "l": 0.35364,
    "c": 0.13097,
    "h": 307.4
  },
  "luminance": 0.03855
}

Semantic roles & 50–950 ramp

primary
#4E216F
secondary
#6FA349
accent
#DE4A89
background
#F8F5F9
surface
#EFEAF2
border
#CAC6CC
text
#0B050E
muted
#7C797E

Preview Lab

Preview with #4E216F

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

Preview Lab → · Contrast checker → · Palette generator →

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