#4E2180#4E2180

#4E2180 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 36.7% C 0.151 H 300.7°. Best body text is #FFFFFF at 11.33:1 contrast (WCAG AA passes).

Color values

HEX#4E2180
RGBrgb(78, 33, 128)
HSLhsl(268, 59%, 32%)
HSVhsv(268, 74%, 50%)
CMYKcmyk(39.1%, 74.2%, 0%, 49.8%)
CIE-LABlab(24.53, 40.52, -45.38)
CIE-LCHlch(24.53, 60.84, 311.76°)
OKLaboklab(36.75% 0.077 -0.1294)
OKLCHoklch(36.75% 0.151 300.7)
XYZxyz(7.5811, 4.2659, 20.8419)
Luminance0.0427 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2180 #538021
analogous
#212480 #4E2180 #7E2180
triadic
#4E2180 #804E21 #21804E
tetradic
#4E2180 #802124 #538021 #21807E
square
#4E2180 #802124 #538021 #21807E
split-complementary
#4E2180 #807E21 #248021
monochromatic
#13081F #30144F #4E2180 #6C2EB1 #8A4BD1

Accessibility & contrast

On white

11.33
#4E2180 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E2180
11.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2180#FFFFFF#000000##FFFFFF
##4E21801.0011.331.8511.33
#FFFFFF11.331.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A83
Deuteranopia (green-blind)
#003A7E
Tritanopia (blue-blind)
#43384E
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #4e2180;
/* rgb */ color: rgb(78, 33, 128);
/* oklch */ color: oklch(36.7% 0.151 300.7);
Tailwind
colors: {
  custom: {
    50: '#8461a6',
    500: '#4e2180',
    950: '#000000',
  },
}
SCSS
$custom: #4e2180;
$custom-light: #8461a6;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2180",
  "rgb": {
    "r": 78,
    "g": 33,
    "b": 128
  },
  "hsl": {
    "h": 268.421,
    "s": 59.006,
    "l": 31.569
  },
  "oklch": {
    "l": 0.36747,
    "c": 0.15059,
    "h": 300.7
  },
  "luminance": 0.04266
}

Semantic roles & 50–950 ramp

primary
#4E2180
secondary
#81B34A
accent
#E24698
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4E2180

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

Preview Lab → · Contrast checker → · Palette generator →

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