#4E218C#4E218C

#4E218C is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.8% C 0.164 H 296.8°. Best body text is #FFFFFF at 10.94:1 contrast (WCAG AA passes).

Color values

HEX#4E218C
RGBrgb(78, 33, 140)
HSLhsl(265, 62%, 34%)
HSVhsv(265, 76%, 55%)
CMYKcmyk(44.3%, 76.4%, 0%, 45.1%)
CIE-LABlab(25.57, 43.71, -51.21)
CIE-LCHlch(25.57, 67.33, 310.48°)
OKLaboklab(37.8% 0.0742 -0.1466)
OKLCHoklch(37.8% 0.164 296.8)
XYZxyz(8.4181, 4.6007, 25.2504)
Luminance0.0460 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E218C #5F8C21
analogous
#21298C #4E218C #84218C
triadic
#4E218C #8C4E21 #218C4E
tetradic
#4E218C #8C2129 #5F8C21 #218C84
square
#4E218C #8C2129 #5F8C21 #218C84
split-complementary
#4E218C #8C8421 #298C21
monochromatic
#170A29 #32155A #4E218C #6A2DBE #8951D6

Accessibility & contrast

On white

10.94
#4E218C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#4E218C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E218C
10.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E218C#FFFFFF#000000##FFFFFF
##4E218C1.0010.941.9210.94
#FFFFFF10.941.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8F
Deuteranopia (green-blind)
#003B8A
Tritanopia (blue-blind)
#3E3D55
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #4e218c;
/* rgb */ color: rgb(78, 33, 140);
/* oklch */ color: oklch(37.8% 0.164 296.8);
Tailwind
colors: {
  custom: {
    50: '#8661ae',
    500: '#4e218c',
    950: '#000000',
  },
}
SCSS
$custom: #4e218c;
$custom-light: #8661ae;
$custom-dark: #000000;
JSON
{
  "hex": "#4e218c",
  "rgb": {
    "r": 78,
    "g": 33,
    "b": 140
  },
  "hsl": {
    "h": 265.234,
    "s": 61.85,
    "l": 33.922
  },
  "oklch": {
    "l": 0.37798,
    "c": 0.16428,
    "h": 296.8
  },
  "luminance": 0.04601
}

Semantic roles & 50–950 ramp

primary
#4E218C
secondary
#8DB94F
accent
#E543A1
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4E218C

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

Preview Lab → · Contrast checker → · Palette generator →

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