#4E2281#4E2281

#4E2281 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.0% C 0.150 H 300.2°. Best body text is #FFFFFF at 11.23:1 contrast (WCAG AA passes).

Color values

HEX#4E2281
RGBrgb(78, 34, 129)
HSLhsl(268, 58%, 32%)
HSVhsv(268, 74%, 51%)
CMYKcmyk(39.5%, 73.6%, 0%, 49.4%)
CIE-LABlab(24.79, 40.29, -45.59)
CIE-LCHlch(24.79, 60.84, 311.47°)
OKLaboklab(36.96% 0.0757 -0.1301)
OKLCHoklch(36.96% 0.15 300.2)
XYZxyz(7.6754, 4.3487, 21.1996)
Luminance0.0435 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2281 #558122
analogous
#222681 #4E2281 #7D2281
triadic
#4E2281 #814E22 #22814E
tetradic
#4E2281 #812226 #558122 #22817D
square
#4E2281 #812226 #558122 #22817D
split-complementary
#4E2281 #817D22 #268122
monochromatic
#130820 #311551 #4E2281 #6B2FB1 #8A4DD0

Accessibility & contrast

On white

11.23
#4E2281 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#4E2281 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2281
11.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2281#FFFFFF#000000##FFFFFF
##4E22811.0011.231.8711.23
#FFFFFF11.231.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B84
Deuteranopia (green-blind)
#003A7F
Tritanopia (blue-blind)
#42394F
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #4e2281;
/* rgb */ color: rgb(78, 34, 129);
/* oklch */ color: oklch(37.0% 0.150 300.2);
Tailwind
colors: {
  custom: {
    50: '#8461a6',
    500: '#4e2281',
    950: '#000000',
  },
}
SCSS
$custom: #4e2281;
$custom-light: #8461a6;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2281",
  "rgb": {
    "r": 78,
    "g": 34,
    "b": 129
  },
  "hsl": {
    "h": 267.789,
    "s": 58.282,
    "l": 31.961
  },
  "oklch": {
    "l": 0.36958,
    "c": 0.15049,
    "h": 300.2
  },
  "luminance": 0.04349
}

Semantic roles & 50–950 ramp

primary
#4E2281
secondary
#83B34B
accent
#E1469A
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4E2281

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

Preview Lab → · Contrast checker → · Palette generator →

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