#4E2A99#4E2A99

#4E2A99 is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.1% C 0.169 H 291.8°. Best body text is #FFFFFF at 9.93:1 contrast (WCAG AA passes).

Color values

HEX#4E2A99
RGBrgb(78, 42, 153)
HSLhsl(259, 57%, 38%)
HSVhsv(259, 73%, 60%)
CMYKcmyk(49%, 72.5%, 0%, 40%)
CIE-LABlab(28.31, 42.79, -54.73)
CIE-LCHlch(28.31, 69.48, 308.02°)
OKLaboklab(40.1% 0.0627 -0.157)
OKLCHoklch(40.1% 0.169 291.8)
XYZxyz(9.7180, 5.5752, 30.6949)
Luminance0.0558 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2A99 #75992A
analogous
#2A3E99 #4E2A99 #852A99
triadic
#4E2A99 #994E2A #2A994E
tetradic
#4E2A99 #992A3E #75992A #2A9985
square
#4E2A99 #992A3E #75992A #2A9985
split-complementary
#4E2A99 #99852A #3E992A
monochromatic
#1D1039 #361D69 #4E2A99 #6738C8 #8B68D6

Accessibility & contrast

On white

9.93
#4E2A99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#4E2A99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2A99
9.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2A99#FFFFFF#000000##FFFFFF
##4E2A991.009.932.129.93
#FFFFFF9.931.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.931.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4e2a99;
/* rgb */ color: rgb(78, 42, 153);
/* oklch */ color: oklch(40.1% 0.169 291.8);
Tailwind
colors: {
  custom: {
    50: '#8767b8',
    500: '#4e2a99',
    950: '#000000',
  },
}
SCSS
$custom: #4e2a99;
$custom-light: #8767b8;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2a99",
  "rgb": {
    "r": 78,
    "g": 42,
    "b": 153
  },
  "hsl": {
    "h": 259.459,
    "s": 56.923,
    "l": 38.235
  },
  "oklch": {
    "l": 0.40096,
    "c": 0.16904,
    "h": 291.8
  },
  "luminance": 0.05576
}

Semantic roles & 50–950 ramp

primary
#4E2A99
secondary
#9FBC63
accent
#E048AF
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #4E2A99

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

Preview Lab → · Contrast checker → · Palette generator →

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