#4D29A2#4D29A2

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

Color values

HEX#4D29A2
RGBrgb(77, 41, 162)
HSLhsl(258, 60%, 40%)
HSVhsv(258, 75%, 64%)
CMYKcmyk(52.5%, 74.7%, 0%, 36.5%)
CIE-LABlab(28.83, 45.71, -59.38)
CIE-LCHlch(28.83, 74.93, 307.59°)
OKLaboklab(40.68% 0.06 -0.1706)
OKLCHoklch(40.68% 0.181 289.4)
XYZxyz(10.3732, 5.7718, 34.7429)
Luminance0.0577 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D29A2 #7EA229
analogous
#2942A2 #4D29A2 #8929A2
triadic
#4D29A2 #A24D29 #29A24D
tetradic
#4D29A2 #A22942 #7EA229 #29A289
square
#4D29A2 #A22942 #7EA229 #29A289
split-complementary
#4D29A2 #A28929 #42A229
monochromatic
#1F1040 #361D71 #4D29A2 #663BCD #8C6CDA

Accessibility & contrast

On white

9.75
#4D29A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#4D29A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D29A2
9.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D29A2#FFFFFF#000000##FFFFFF
##4D29A21.009.752.159.75
#FFFFFF9.751.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A5
Deuteranopia (green-blind)
#0041A0
Tritanopia (blue-blind)
#2E4A63
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4d29a2;
/* rgb */ color: rgb(77, 41, 162);
/* oklch */ color: oklch(40.7% 0.181 289.4);
Tailwind
colors: {
  custom: {
    50: '#8867bf',
    500: '#4d29a2',
    950: '#000000',
  },
}
SCSS
$custom: #4d29a2;
$custom-light: #8867bf;
$custom-dark: #000000;
JSON
{
  "hex": "#4d29a2",
  "rgb": {
    "r": 77,
    "g": 41,
    "b": 162
  },
  "hsl": {
    "h": 257.851,
    "s": 59.606,
    "l": 39.804
  },
  "oklch": {
    "l": 0.40683,
    "c": 0.18087,
    "h": 289.4
  },
  "luminance": 0.05772
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4D29A2

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

Preview Lab → · Contrast checker → · Palette generator →

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