#4D29A3#4D29A3

#4D29A3 is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.8% C 0.182 H 289.2°. Best body text is #FFFFFF at 9.72:1 contrast (WCAG AA passes).

Color values

HEX#4D29A3
RGBrgb(77, 41, 163)
HSLhsl(258, 60%, 40%)
HSVhsv(258, 75%, 64%)
CMYKcmyk(52.8%, 74.8%, 0%, 36.1%)
CIE-LABlab(28.92, 46.00, -59.83)
CIE-LCHlch(28.92, 75.47, 307.55°)
OKLaboklab(40.78% 0.0598 -0.1719)
OKLCHoklch(40.78% 0.182 289.2)
XYZxyz(10.4624, 5.8075, 35.2129)
Luminance0.0581 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D29A3 #7FA329
analogous
#2942A3 #4D29A3 #8A29A3
triadic
#4D29A3 #A34D29 #29A34D
tetradic
#4D29A3 #A32942 #7FA329 #29A38A
square
#4D29A3 #A32942 #7FA329 #29A38A
split-complementary
#4D29A3 #A38A29 #42A329
monochromatic
#1F1041 #361D72 #4D29A3 #673BCE #8D6CDA

Accessibility & contrast

On white

9.72
#4D29A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D29A3
9.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D29A3#FFFFFF#000000##FFFFFF
##4D29A31.009.722.169.72
#FFFFFF9.721.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A7
Deuteranopia (green-blind)
#0041A1
Tritanopia (blue-blind)
#2D4A64
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4d29a3;
/* rgb */ color: rgb(77, 41, 163);
/* oklch */ color: oklch(40.8% 0.182 289.2);
Tailwind
colors: {
  custom: {
    50: '#8867bf',
    500: '#4d29a3',
    950: '#000000',
  },
}
SCSS
$custom: #4d29a3;
$custom-light: #8867bf;
$custom-dark: #000000;
JSON
{
  "hex": "#4d29a3",
  "rgb": {
    "r": 77,
    "g": 41,
    "b": 163
  },
  "hsl": {
    "h": 257.705,
    "s": 59.804,
    "l": 40
  },
  "oklch": {
    "l": 0.40776,
    "c": 0.18205,
    "h": 289.2
  },
  "luminance": 0.05808
}

Semantic roles & 50–950 ramp

primary
#4D29A3
secondary
#A6C167
accent
#E345B4
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4D29A3

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

Preview Lab → · Contrast checker → · Palette generator →

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