#4A29B2#4A29B2

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

Color values

HEX#4A29B2
RGBrgb(74, 41, 178)
HSLhsl(254, 63%, 43%)
HSVhsv(254, 77%, 70%)
CMYKcmyk(58.4%, 77%, 0%, 30.2%)
CIE-LABlab(30.05, 49.89, -67.00)
CIE-LCHlch(30.05, 83.54, 306.67°)
OKLaboklab(41.93% 0.0513 -0.193)
OKLCHoklch(41.93% 0.2 284.9)
XYZxyz(11.6504, 6.2554, 42.7043)
Luminance0.0626 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A29B2 #91B229
analogous
#294CB2 #4A29B2 #8F29B2
triadic
#4A29B2 #B24A29 #29B24A
tetradic
#4A29B2 #B2294C #91B229 #29B28F
square
#4A29B2 #B2294C #91B229 #29B28F
split-complementary
#4A29B2 #B28F29 #4CB229
monochromatic
#21124F #351E80 #4A29B2 #6744D4 #8F76DF

Accessibility & contrast

On white

9.33
#4A29B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#4A29B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A29B2
9.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A29B2#FFFFFF#000000##FFFFFF
##4A29B21.009.332.259.33
#FFFFFF9.331.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB6
Deuteranopia (green-blind)
#0042B0
Tritanopia (blue-blind)
#0F506C
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4a29b2;
/* rgb */ color: rgb(74, 41, 178);
/* oklch */ color: oklch(41.9% 0.200 284.9);
Tailwind
colors: {
  custom: {
    50: '#8967ca',
    500: '#4a29b2',
    950: '#000000',
  },
}
SCSS
$custom: #4a29b2;
$custom-light: #8967ca;
$custom-dark: #000000;
JSON
{
  "hex": "#4a29b2",
  "rgb": {
    "r": 74,
    "g": 41,
    "b": 178
  },
  "hsl": {
    "h": 254.453,
    "s": 62.557,
    "l": 42.941
  },
  "oklch": {
    "l": 0.41929,
    "c": 0.19974,
    "h": 284.9
  },
  "luminance": 0.06256
}

Semantic roles & 50–950 ramp

primary
#4A29B2
secondary
#B2C770
accent
#E642BE
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #4A29B2

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

Preview Lab → · Contrast checker → · Palette generator →

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