#4E2883#4E2883

#4E2883 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 37.9% C 0.145 H 298.3°. Best body text is #FFFFFF at 10.74:1 contrast (WCAG AA passes).

Color values

HEX#4E2883
RGBrgb(78, 40, 131)
HSLhsl(265, 53%, 34%)
HSVhsv(265, 69%, 51%)
CMYKcmyk(40.5%, 69.5%, 0%, 48.6%)
CIE-LABlab(26.09, 37.68, -44.74)
CIE-LCHlch(26.09, 58.50, 310.11°)
OKLaboklab(37.93% 0.0688 -0.1276)
OKLCHoklch(37.93% 0.145 298.3)
XYZxyz(7.9964, 4.7759, 21.9689)
Luminance0.0478 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2883 #5D8328
analogous
#282F83 #4E2883 #7B2883
triadic
#4E2883 #834E28 #28834E
tetradic
#4E2883 #83282F #5D8328 #28837B
square
#4E2883 #83282F #5D8328 #28837B
split-complementary
#4E2883 #837B28 #2F8328
monochromatic
#160B25 #321A54 #4E2883 #6A36B2 #8959CC

Accessibility & contrast

On white

10.74
#4E2883 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#4E2883 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2883
10.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2883#FFFFFF#000000##FFFFFF
##4E28831.0010.741.9610.74
#FFFFFF10.741.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E86
Deuteranopia (green-blind)
#003D81
Tritanopia (blue-blind)
#413D52
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #4e2883;
/* rgb */ color: rgb(78, 40, 131);
/* oklch */ color: oklch(37.9% 0.145 298.3);
Tailwind
colors: {
  custom: {
    50: '#8465a8',
    500: '#4e2883',
    950: '#000000',
  },
}
SCSS
$custom: #4e2883;
$custom-light: #8465a8;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2883",
  "rgb": {
    "r": 78,
    "g": 40,
    "b": 131
  },
  "hsl": {
    "h": 265.055,
    "s": 53.216,
    "l": 33.529
  },
  "oklch": {
    "l": 0.37932,
    "c": 0.14496,
    "h": 298.3
  },
  "luminance": 0.04776
}

Semantic roles & 50–950 ramp

primary
#4E2883
secondary
#8BB155
accent
#DD4BA0
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #4E2883

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

Preview Lab → · Contrast checker → · Palette generator →

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