#4E2882#4E2882

#4E2882 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 37.9% C 0.144 H 298.7°. Best body text is #FFFFFF at 10.77:1 contrast (WCAG AA passes).

Color values

HEX#4E2882
RGBrgb(78, 40, 130)
HSLhsl(265, 53%, 33%)
HSVhsv(265, 69%, 51%)
CMYKcmyk(40%, 69.2%, 0%, 49%)
CIE-LABlab(26.01, 37.41, -44.24)
CIE-LCHlch(26.01, 57.94, 310.21°)
OKLaboklab(37.85% 0.0689 -0.1261)
OKLCHoklch(37.85% 0.144 298.7)
XYZxyz(7.9289, 4.7489, 21.6137)
Luminance0.0475 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2882 #5C8228
analogous
#282F82 #4E2882 #7B2882
triadic
#4E2882 #824E28 #28824E
tetradic
#4E2882 #82282F #5C8228 #28827B
square
#4E2882 #82282F #5C8228 #28827B
split-complementary
#4E2882 #827B28 #2F8228
monochromatic
#160B24 #321A53 #4E2882 #6A36B1 #8959CC

Accessibility & contrast

On white

10.77
#4E2882 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#4E2882 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2882
10.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2882#FFFFFF#000000##FFFFFF
##4E28821.0010.771.9510.77
#FFFFFF10.771.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E85
Deuteranopia (green-blind)
#003D80
Tritanopia (blue-blind)
#423D51
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #4e2882;
/* rgb */ color: rgb(78, 40, 130);
/* oklch */ color: oklch(37.9% 0.144 298.7);
Tailwind
colors: {
  custom: {
    50: '#8465a7',
    500: '#4e2882',
    950: '#000000',
  },
}
SCSS
$custom: #4e2882;
$custom-light: #8465a7;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2882",
  "rgb": {
    "r": 78,
    "g": 40,
    "b": 130
  },
  "hsl": {
    "h": 265.333,
    "s": 52.941,
    "l": 33.333
  },
  "oklch": {
    "l": 0.3785,
    "c": 0.14374,
    "h": 298.7
  },
  "luminance": 0.04749
}

Semantic roles & 50–950 ramp

primary
#4E2882
secondary
#8AB155
accent
#DC4B9F
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #4E2882

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

Preview Lab → · Contrast checker → · Palette generator →

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