#4E2282#4E2282

#4E2282 is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.0% C 0.152 H 299.9°. Best body text is #FFFFFF at 11.20:1 contrast (WCAG AA passes).

Color values

HEX#4E2282
RGBrgb(78, 34, 130)
HSLhsl(268, 59%, 32%)
HSVhsv(268, 74%, 51%)
CMYKcmyk(40%, 73.8%, 0%, 49%)
CIE-LABlab(24.88, 40.56, -46.08)
CIE-LCHlch(24.88, 61.39, 311.35°)
OKLaboklab(37.04% 0.0755 -0.1315)
OKLCHoklch(37.04% 0.152 299.9)
XYZxyz(7.7422, 4.3754, 21.5514)
Luminance0.0437 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2282 #568222
analogous
#222682 #4E2282 #7E2282
triadic
#4E2282 #824E22 #22824E
tetradic
#4E2282 #822226 #568222 #22827E
square
#4E2282 #822226 #568222 #22827E
split-complementary
#4E2282 #827E22 #268222
monochromatic
#140921 #311551 #4E2282 #6B2FB3 #8A4ED1

Accessibility & contrast

On white

11.20
#4E2282 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#4E2282 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2282
11.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2282#FFFFFF#000000##FFFFFF
##4E22821.0011.201.8811.20
#FFFFFF11.201.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B85
Deuteranopia (green-blind)
#003A80
Tritanopia (blue-blind)
#423A50
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #4e2282;
/* rgb */ color: rgb(78, 34, 130);
/* oklch */ color: oklch(37.0% 0.152 299.9);
Tailwind
colors: {
  custom: {
    50: '#8561a7',
    500: '#4e2282',
    950: '#000000',
  },
}
SCSS
$custom: #4e2282;
$custom-light: #8561a7;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2282",
  "rgb": {
    "r": 78,
    "g": 34,
    "b": 130
  },
  "hsl": {
    "h": 267.5,
    "s": 58.537,
    "l": 32.157
  },
  "oklch": {
    "l": 0.37043,
    "c": 0.15164,
    "h": 299.9
  },
  "luminance": 0.04375
}

Semantic roles & 50–950 ramp

primary
#4E2282
secondary
#84B44C
accent
#E2469A
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4E2282

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

Preview Lab → · Contrast checker → · Palette generator →

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