#4E29A6#4E29A6

#4E29A6 is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.2% C 0.186 H 289.0°. Best body text is #FFFFFF at 9.58:1 contrast (WCAG AA passes).

Color values

HEX#4E29A6
RGBrgb(78, 41, 166)
HSLhsl(258, 60%, 41%)
HSVhsv(258, 75%, 65%)
CMYKcmyk(53%, 75.3%, 0%, 34.9%)
CIE-LABlab(29.31, 47.01, -61.01)
CIE-LCHlch(29.31, 77.02, 307.61°)
OKLaboklab(41.16% 0.0605 -0.1754)
OKLCHoklch(41.16% 0.186 289)
XYZxyz(10.8158, 5.9582, 36.6492)
Luminance0.0596 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E29A6 #81A629
analogous
#2942A6 #4E29A6 #8C29A6
triadic
#4E29A6 #A64E29 #29A64E
tetradic
#4E29A6 #A62942 #81A629 #29A68C
square
#4E29A6 #A62942 #81A629 #29A68C
split-complementary
#4E29A6 #A68C29 #42A629
monochromatic
#201144 #371D75 #4E29A6 #683DCF #8E6EDB

Accessibility & contrast

On white

9.58
#4E29A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#4E29A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E29A6
9.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E29A6#FFFFFF#000000##FFFFFF
##4E29A61.009.582.199.58
#FFFFFF9.581.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048AA
Deuteranopia (green-blind)
#0042A4
Tritanopia (blue-blind)
#2D4B66
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #4e29a6;
/* rgb */ color: rgb(78, 41, 166);
/* oklch */ color: oklch(41.2% 0.186 289.0);
Tailwind
colors: {
  custom: {
    50: '#8967c1',
    500: '#4e29a6',
    950: '#000000',
  },
}
SCSS
$custom: #4e29a6;
$custom-light: #8967c1;
$custom-dark: #000000;
JSON
{
  "hex": "#4e29a6",
  "rgb": {
    "r": 78,
    "g": 41,
    "b": 166
  },
  "hsl": {
    "h": 257.76,
    "s": 60.386,
    "l": 40.588
  },
  "oklch": {
    "l": 0.41158,
    "c": 0.18552,
    "h": 289
  },
  "luminance": 0.05959
}

Semantic roles & 50–950 ramp

primary
#4E29A6
secondary
#A8C269
accent
#E444B4
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0D0612
muted
#7D7A81

Preview Lab

Preview with #4E29A6

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

Preview Lab → · Contrast checker → · Palette generator →

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