#4D29B1#4D29B1

#4D29B1 is a dark, vivid violet. Relative luminance 0.063; OKLCH L 42.1% C 0.198 H 286.4°. Best body text is #FFFFFF at 9.26:1 contrast (WCAG AA passes).

Color values

HEX#4D29B1
RGBrgb(77, 41, 177)
HSLhsl(256, 62%, 43%)
HSVhsv(256, 77%, 69%)
CMYKcmyk(56.5%, 76.8%, 0%, 30.6%)
CIE-LABlab(30.25, 49.99, -66.07)
CIE-LCHlch(30.25, 82.85, 307.12°)
OKLaboklab(42.11% 0.0561 -0.1902)
OKLCHoklch(42.11% 0.198 286.4)
XYZxyz(11.7869, 6.3373, 42.1886)
Luminance0.0634 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D29B1 #8DB129
analogous
#2949B1 #4D29B1 #9129B1
triadic
#4D29B1 #B14D29 #29B14D
tetradic
#4D29B1 #B12949 #8DB129 #29B191
square
#4D29B1 #B12949 #8DB129 #29B191
split-complementary
#4D29B1 #B19129 #49B129
monochromatic
#22124E #371D7F #4D29B1 #6A44D4 #9175DF

Accessibility & contrast

On white

9.26
#4D29B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#4D29B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D29B1
9.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D29B1#FFFFFF#000000##FFFFFF
##4D29B11.009.262.279.26
#FFFFFF9.261.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB5
Deuteranopia (green-blind)
#0043AF
Tritanopia (blue-blind)
#1E506C
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4d29b1;
/* rgb */ color: rgb(77, 41, 177);
/* oklch */ color: oklch(42.1% 0.198 286.4);
Tailwind
colors: {
  custom: {
    50: '#8a67c9',
    500: '#4d29b1',
    950: '#000000',
  },
}
SCSS
$custom: #4d29b1;
$custom-light: #8a67c9;
$custom-dark: #000000;
JSON
{
  "hex": "#4d29b1",
  "rgb": {
    "r": 77,
    "g": 41,
    "b": 177
  },
  "hsl": {
    "h": 255.882,
    "s": 62.385,
    "l": 42.745
  },
  "oklch": {
    "l": 0.42111,
    "c": 0.1983,
    "h": 286.4
  },
  "luminance": 0.06338
}

Semantic roles & 50–950 ramp

primary
#4D29B1
secondary
#AFC76F
accent
#E542BA
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #4D29B1

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

Preview Lab → · Contrast checker → · Palette generator →

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