#4E29A1#4E29A1

#4E29A1 is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.7% C 0.180 H 290.1°. Best body text is #FFFFFF at 9.74:1 contrast (WCAG AA passes).

Color values

HEX#4E29A1
RGBrgb(78, 41, 161)
HSLhsl(259, 59%, 40%)
HSVhsv(259, 75%, 63%)
CMYKcmyk(51.6%, 74.5%, 0%, 36.9%)
CIE-LABlab(28.85, 45.59, -58.74)
CIE-LCHlch(28.85, 74.35, 307.81°)
OKLaboklab(40.69% 0.0618 -0.1687)
OKLCHoklch(40.69% 0.18 290.1)
XYZxyz(10.3660, 5.7783, 34.2804)
Luminance0.0578 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E29A1 #7CA129
analogous
#2940A1 #4E29A1 #8A29A1
triadic
#4E29A1 #A14E29 #29A14E
tetradic
#4E29A1 #A12940 #7CA129 #29A18A
square
#4E29A1 #A12940 #7CA129 #29A18A
split-complementary
#4E29A1 #A18A29 #40A129
monochromatic
#1F103F #361D70 #4E29A1 #673ACD #8D6BD9

Accessibility & contrast

On white

9.74
#4E29A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#4E29A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E29A1
9.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E29A1#FFFFFF#000000##FFFFFF
##4E29A11.009.742.169.74
#FFFFFF9.741.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A4
Deuteranopia (green-blind)
#00419F
Tritanopia (blue-blind)
#314963
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4e29a1;
/* rgb */ color: rgb(78, 41, 161);
/* oklch */ color: oklch(40.7% 0.180 290.1);
Tailwind
colors: {
  custom: {
    50: '#8867be',
    500: '#4e29a1',
    950: '#000000',
  },
}
SCSS
$custom: #4e29a1;
$custom-light: #8867be;
$custom-dark: #000000;
JSON
{
  "hex": "#4e29a1",
  "rgb": {
    "r": 78,
    "g": 41,
    "b": 161
  },
  "hsl": {
    "h": 258.5,
    "s": 59.406,
    "l": 39.608
  },
  "oklch": {
    "l": 0.40692,
    "c": 0.17967,
    "h": 290.1
  },
  "luminance": 0.05779
}

Semantic roles & 50–950 ramp

primary
#4E29A1
secondary
#A4C066
accent
#E345B2
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4E29A1

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

Preview Lab → · Contrast checker → · Palette generator →

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