#4A31AD#4A31AD

#4A31AD is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.5% C 0.185 H 284.5°. Best body text is #FFFFFF at 9.00:1 contrast (WCAG AA passes).

Color values

HEX#4A31AD
RGBrgb(74, 49, 173)
HSLhsl(252, 56%, 44%)
HSVhsv(252, 72%, 68%)
CMYKcmyk(57.2%, 71.7%, 0%, 32.2%)
CIE-LABlab(31.04, 44.27, -62.39)
CIE-LCHlch(31.04, 76.50, 305.36°)
OKLaboklab(42.49% 0.0465 -0.1796)
OKLCHoklch(42.49% 0.186 284.5)
XYZxyz(11.4629, 6.6689, 40.2103)
Luminance0.0667 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A31AD #94AD31
analogous
#3156AD #4A31AD #8831AD
triadic
#4A31AD #AD4A31 #31AD4A
tetradic
#4A31AD #AD3156 #94AD31 #31AD88
square
#4A31AD #AD3156 #94AD31 #31AD88
split-complementary
#4A31AD #AD8831 #56AD31
monochromatic
#21164E #36237D #4A31AD #684ECD #917EDA

Accessibility & contrast

On white

9.00
#4A31AD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#4A31AD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A31AD
9.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A31AD#FFFFFF#000000##FFFFFF
##4A31AD1.009.002.339.00
#FFFFFF9.001.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB1
Deuteranopia (green-blind)
#0045AB
Tritanopia (blue-blind)
#18526C
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #4a31ad;
/* rgb */ color: rgb(74, 49, 173);
/* oklch */ color: oklch(42.5% 0.185 284.5);
Tailwind
colors: {
  custom: {
    50: '#876cc7',
    500: '#4a31ad',
    950: '#000000',
  },
}
SCSS
$custom: #4a31ad;
$custom-light: #876cc7;
$custom-dark: #000000;
JSON
{
  "hex": "#4a31ad",
  "rgb": {
    "r": 74,
    "g": 49,
    "b": 173
  },
  "hsl": {
    "h": 252.097,
    "s": 55.856,
    "l": 43.529
  },
  "oklch": {
    "l": 0.42486,
    "c": 0.1855,
    "h": 284.5
  },
  "luminance": 0.0667
}

Semantic roles & 50–950 ramp

primary
#4A31AD
secondary
#B4C377
accent
#DF49C1
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0713
muted
#7D7A82

Preview Lab

Preview with #4A31AD

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

Preview Lab → · Contrast checker → · Palette generator →

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