#4C29B2#4C29B2

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

Color values

HEX#4C29B2
RGBrgb(76, 41, 178)
HSLhsl(255, 63%, 43%)
HSVhsv(255, 77%, 70%)
CMYKcmyk(57.3%, 77%, 0%, 30.2%)
CIE-LABlab(30.24, 50.15, -66.67)
CIE-LCHlch(30.24, 83.43, 306.95°)
OKLaboklab(42.11% 0.0543 -0.192)
OKLCHoklch(42.11% 0.2 285.8)
XYZxyz(11.8069, 6.3360, 42.7117)
Luminance0.0634 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C29B2 #8FB229
analogous
#294BB2 #4C29B2 #9029B2
triadic
#4C29B2 #B24C29 #29B24C
tetradic
#4C29B2 #B2294B #8FB229 #29B290
square
#4C29B2 #B2294B #8FB229 #29B290
split-complementary
#4C29B2 #B29029 #4BB229
monochromatic
#22124F #371E80 #4C29B2 #6944D4 #9176DF

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4C29B2#FFFFFF#000000##FFFFFF
##4C29B21.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)
#004BB6
Deuteranopia (green-blind)
#0043B0
Tritanopia (blue-blind)
#19506C
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4c29b2;
/* rgb */ color: rgb(76, 41, 178);
/* oklch */ color: oklch(42.1% 0.200 285.8);
Tailwind
colors: {
  custom: {
    50: '#8a67ca',
    500: '#4c29b2',
    950: '#000000',
  },
}
SCSS
$custom: #4c29b2;
$custom-light: #8a67ca;
$custom-dark: #000000;
JSON
{
  "hex": "#4c29b2",
  "rgb": {
    "r": 76,
    "g": 41,
    "b": 178
  },
  "hsl": {
    "h": 255.328,
    "s": 62.557,
    "l": 42.941
  },
  "oklch": {
    "l": 0.42114,
    "c": 0.19954,
    "h": 285.8
  },
  "luminance": 0.06337
}

Semantic roles & 50–950 ramp

primary
#4C29B2
secondary
#B1C770
accent
#E642BC
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #4C29B2

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

Preview Lab → · Contrast checker → · Palette generator →

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