#4E2899#4E2899

#4E2899 is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.8% C 0.171 H 292.1°. Best body text is #FFFFFF at 10.06:1 contrast (WCAG AA passes).

Color values

HEX#4E2899
RGBrgb(78, 40, 153)
HSLhsl(260, 59%, 38%)
HSVhsv(260, 74%, 60%)
CMYKcmyk(49%, 73.9%, 0%, 40%)
CIE-LABlab(27.94, 43.83, -55.34)
CIE-LCHlch(27.94, 70.59, 308.38°)
OKLaboklab(39.83% 0.0646 -0.1587)
OKLCHoklch(39.83% 0.171 292.1)
XYZxyz(9.6488, 5.4369, 30.6718)
Luminance0.0544 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2899 #739928
analogous
#283A99 #4E2899 #862899
triadic
#4E2899 #994E28 #28994E
tetradic
#4E2899 #99283A #739928 #289986
square
#4E2899 #99283A #739928 #289986
split-complementary
#4E2899 #998628 #3A9928
monochromatic
#1D0F38 #351B68 #4E2899 #6735CA #8B65D7

Accessibility & contrast

On white

10.06
#4E2899 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#4E2899 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2899
10.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2899#FFFFFF#000000##FFFFFF
##4E28991.0010.062.0910.06
#FFFFFF10.061.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449C
Deuteranopia (green-blind)
#004097
Tritanopia (blue-blind)
#36465E
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #4e2899;
/* rgb */ color: rgb(78, 40, 153);
/* oklch */ color: oklch(39.8% 0.171 292.1);
Tailwind
colors: {
  custom: {
    50: '#8766b8',
    500: '#4e2899',
    950: '#000000',
  },
}
SCSS
$custom: #4e2899;
$custom-light: #8766b8;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2899",
  "rgb": {
    "r": 78,
    "g": 40,
    "b": 153
  },
  "hsl": {
    "h": 260.177,
    "s": 58.549,
    "l": 37.843
  },
  "oklch": {
    "l": 0.39834,
    "c": 0.17138,
    "h": 292.1
  },
  "luminance": 0.05437
}

Semantic roles & 50–950 ramp

primary
#4E2899
secondary
#9EBD60
accent
#E246AD
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #4E2899

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

Preview Lab → · Contrast checker → · Palette generator →

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