#4E217F#4E217F

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

Color values

HEX#4E217F
RGBrgb(78, 33, 127)
HSLhsl(269, 59%, 31%)
HSVhsv(269, 74%, 50%)
CMYKcmyk(38.6%, 74%, 0%, 50.2%)
CIE-LABlab(24.45, 40.26, -44.88)
CIE-LCHlch(24.45, 60.30, 311.89°)
OKLaboklab(36.66% 0.0772 -0.128)
OKLCHoklch(36.66% 0.149 301.1)
XYZxyz(7.5156, 4.2397, 20.4969)
Luminance0.0424 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E217F #527F21
analogous
#21237F #4E217F #7D217F
triadic
#4E217F #7F4E21 #217F4E
tetradic
#4E217F #7F2123 #527F21 #217F7D
square
#4E217F #7F2123 #527F21 #217F7D
split-complementary
#4E217F #7F7D21 #237F21
monochromatic
#12081E #30144E #4E217F #6C2EB0 #8A4AD0

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4E217F#FFFFFF#000000##FFFFFF
##4E217F1.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)
#003A82
Deuteranopia (green-blind)
#003A7D
Tritanopia (blue-blind)
#43384E
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #4e217f;
/* rgb */ color: rgb(78, 33, 127);
/* oklch */ color: oklch(36.7% 0.149 301.1);
Tailwind
colors: {
  custom: {
    50: '#8461a5',
    500: '#4e217f',
    950: '#000000',
  },
}
SCSS
$custom: #4e217f;
$custom-light: #8461a5;
$custom-dark: #000000;
JSON
{
  "hex": "#4e217f",
  "rgb": {
    "r": 78,
    "g": 33,
    "b": 127
  },
  "hsl": {
    "h": 268.723,
    "s": 58.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.36662,
    "c": 0.14944,
    "h": 301.1
  },
  "luminance": 0.0424
}

Semantic roles & 50–950 ramp

primary
#4E217F
secondary
#80B24A
accent
#E24697
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4E217F

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

Preview Lab → · Contrast checker → · Palette generator →

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