#4E217E#4E217E

#4E217E is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.6% C 0.148 H 301.4°. Best body text is #FFFFFF at 11.40:1 contrast (WCAG AA passes).

Color values

HEX#4E217E
RGBrgb(78, 33, 126)
HSLhsl(269, 58%, 31%)
HSVhsv(269, 74%, 49%)
CMYKcmyk(38.1%, 73.8%, 0%, 50.6%)
CIE-LABlab(24.37, 40.00, -44.39)
CIE-LCHlch(24.37, 59.75, 312.02°)
OKLaboklab(36.58% 0.0774 -0.1265)
OKLCHoklch(36.58% 0.148 301.4)
XYZxyz(7.4507, 4.2137, 20.1554)
Luminance0.0421 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E217E #517E21
analogous
#21227E #4E217E #7C217E
triadic
#4E217E #7E4E21 #217E4E
tetradic
#4E217E #7E2122 #517E21 #217E7C
square
#4E217E #7E2122 #517E21 #217E7C
split-complementary
#4E217E #7E7C21 #227E21
monochromatic
#12081D #30144E #4E217E #6C2EAE #8B4AD0

Accessibility & contrast

On white

11.40
#4E217E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#4E217E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E217E
11.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E217E#FFFFFF#000000##FFFFFF
##4E217E1.0011.401.8411.40
#FFFFFF11.401.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003981
Deuteranopia (green-blind)
#00397C
Tritanopia (blue-blind)
#44384D
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #4e217e;
/* rgb */ color: rgb(78, 33, 126);
/* oklch */ color: oklch(36.6% 0.148 301.4);
Tailwind
colors: {
  custom: {
    50: '#8460a4',
    500: '#4e217e',
    950: '#000000',
  },
}
SCSS
$custom: #4e217e;
$custom-light: #8460a4;
$custom-dark: #000000;
JSON
{
  "hex": "#4e217e",
  "rgb": {
    "r": 78,
    "g": 33,
    "b": 126
  },
  "hsl": {
    "h": 269.032,
    "s": 58.491,
    "l": 31.176
  },
  "oklch": {
    "l": 0.36578,
    "c": 0.14829,
    "h": 301.4
  },
  "luminance": 0.04214
}

Semantic roles & 50–950 ramp

primary
#4E217E
secondary
#7FB14A
accent
#E24696
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4E217E

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

Preview Lab → · Contrast checker → · Palette generator →

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