#4E299B#4E299B

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

Color values

HEX#4E299B
RGBrgb(78, 41, 155)
HSLhsl(259, 58%, 38%)
HSVhsv(259, 74%, 61%)
CMYKcmyk(49.7%, 73.5%, 0%, 39.2%)
CIE-LABlab(28.31, 43.88, -55.97)
CIE-LCHlch(28.31, 71.12, 308.10°)
OKLaboklab(40.14% 0.0632 -0.1606)
OKLCHoklch(40.14% 0.173 291.5)
XYZxyz(9.8495, 5.5718, 31.5605)
Luminance0.0557 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E299B #769B29
analogous
#293D9B #4E299B #87299B
triadic
#4E299B #9B4E29 #299B4E
tetradic
#4E299B #9B293D #769B29 #299B87
square
#4E299B #9B293D #769B29 #299B87
split-complementary
#4E299B #9B8729 #3D9B29
monochromatic
#1D0F3A #361C6B #4E299B #6737CA #8C67D7

Accessibility & contrast

On white

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

On black

2.11
#4E299B on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##4E299B#FFFFFF#000000##FFFFFF
##4E299B1.009.932.119.93
#FFFFFF9.931.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00459E
Deuteranopia (green-blind)
#004099
Tritanopia (blue-blind)
#35475F
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #4e299b;
/* rgb */ color: rgb(78, 41, 155);
/* oklch */ color: oklch(40.1% 0.173 291.5);
Tailwind
colors: {
  custom: {
    50: '#8766b9',
    500: '#4e299b',
    950: '#000000',
  },
}
SCSS
$custom: #4e299b;
$custom-light: #8766b9;
$custom-dark: #000000;
JSON
{
  "hex": "#4e299b",
  "rgb": {
    "r": 78,
    "g": 41,
    "b": 155
  },
  "hsl": {
    "h": 259.474,
    "s": 58.163,
    "l": 38.431
  },
  "oklch": {
    "l": 0.40144,
    "c": 0.1726,
    "h": 291.5
  },
  "luminance": 0.05572
}

Semantic roles & 50–950 ramp

primary
#4E299B
secondary
#A0BD63
accent
#E146AF
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4E299B

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

Preview Lab → · Contrast checker → · Palette generator →

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