#4E217C#4E217C

#4E217C is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.4% C 0.146 H 302.2°. Best body text is #FFFFFF at 11.46:1 contrast (WCAG AA passes).

Color values

HEX#4E217C
RGBrgb(78, 33, 124)
HSLhsl(270, 58%, 31%)
HSVhsv(270, 73%, 49%)
CMYKcmyk(37.1%, 73.4%, 0%, 51.4%)
CIE-LABlab(24.20, 39.47, -43.39)
CIE-LCHlch(24.20, 58.66, 312.30°)
OKLaboklab(36.41% 0.0777 -0.1236)
OKLCHoklch(36.41% 0.146 302.2)
XYZxyz(7.3230, 4.1626, 19.4825)
Luminance0.0416 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E217C #4F7C21
analogous
#21217C #4E217C #7B217C
triadic
#4E217C #7C4E21 #217C4E
tetradic
#4E217C #7C2121 #4F7C21 #217C7B
square
#4E217C #7C2121 #4F7C21 #217C7B
split-complementary
#4E217C #7C7B21 #217C21
monochromatic
#11071B #30144C #4E217C #6C2EAC #8B49CF

Accessibility & contrast

On white

11.46
#4E217C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#4E217C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E217C
11.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E217C#FFFFFF#000000##FFFFFF
##4E217C1.0011.461.8311.46
#FFFFFF11.461.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00397F
Deuteranopia (green-blind)
#00397A
Tritanopia (blue-blind)
#44374C
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #4e217c;
/* rgb */ color: rgb(78, 33, 124);
/* oklch */ color: oklch(36.4% 0.146 302.2);
Tailwind
colors: {
  custom: {
    50: '#8460a3',
    500: '#4e217c',
    950: '#000000',
  },
}
SCSS
$custom: #4e217c;
$custom-light: #8460a3;
$custom-dark: #000000;
JSON
{
  "hex": "#4e217c",
  "rgb": {
    "r": 78,
    "g": 33,
    "b": 124
  },
  "hsl": {
    "h": 269.67,
    "s": 57.962,
    "l": 30.784
  },
  "oklch": {
    "l": 0.3641,
    "c": 0.14599,
    "h": 302.2
  },
  "luminance": 0.04163
}

Semantic roles & 50–950 ramp

primary
#4E217C
secondary
#7DAF4A
accent
#E14795
background
#F8F5FA
surface
#EFEAF4
border
#CAC6CE
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4E217C

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

Preview Lab → · Contrast checker → · Palette generator →

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