#4A29A2#4A29A2

#4A29A2 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.4% C 0.181 H 287.9°. Best body text is #FFFFFF at 9.86:1 contrast (WCAG AA passes).

Color values

HEX#4A29A2
RGBrgb(74, 41, 162)
HSLhsl(256, 60%, 40%)
HSVhsv(256, 75%, 64%)
CMYKcmyk(54.3%, 74.7%, 0%, 36.5%)
CIE-LABlab(28.51, 45.25, -59.91)
CIE-LCHlch(28.51, 75.08, 307.07°)
OKLaboklab(40.38% 0.0555 -0.1723)
OKLCHoklch(40.38% 0.181 287.9)
XYZxyz(10.1366, 5.6498, 34.7318)
Luminance0.0565 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A29A2 #81A229
analogous
#2944A2 #4A29A2 #8729A2
triadic
#4A29A2 #A24A29 #29A24A
tetradic
#4A29A2 #A22944 #81A229 #29A287
square
#4A29A2 #A22944 #81A229 #29A287
split-complementary
#4A29A2 #A28729 #44A229
monochromatic
#1D1040 #341D71 #4A29A2 #633BCD #8A6CDA

Accessibility & contrast

On white

9.86
#4A29A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#4A29A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A29A2
9.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A29A2#FFFFFF#000000##FFFFFF
##4A29A21.009.862.139.86
#FFFFFF9.861.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A5
Deuteranopia (green-blind)
#0040A0
Tritanopia (blue-blind)
#264A63
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #4a29a2;
/* rgb */ color: rgb(74, 41, 162);
/* oklch */ color: oklch(40.4% 0.181 287.9);
Tailwind
colors: {
  custom: {
    50: '#8666bf',
    500: '#4a29a2',
    950: '#000000',
  },
}
SCSS
$custom: #4a29a2;
$custom-light: #8666bf;
$custom-dark: #000000;
JSON
{
  "hex": "#4a29a2",
  "rgb": {
    "r": 74,
    "g": 41,
    "b": 162
  },
  "hsl": {
    "h": 256.364,
    "s": 59.606,
    "l": 39.804
  },
  "oklch": {
    "l": 0.40384,
    "c": 0.181,
    "h": 287.9
  },
  "luminance": 0.0565
}

Semantic roles & 50–950 ramp

primary
#4A29A2
secondary
#A8C067
accent
#E345B8
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4A29A2

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

Preview Lab → · Contrast checker → · Palette generator →

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