#4A31AE#4A31AE

#4A31AE is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.6% C 0.187 H 284.4°. Best body text is #FFFFFF at 8.97:1 contrast (WCAG AA passes).

Color values

HEX#4A31AE
RGBrgb(74, 49, 174)
HSLhsl(252, 56%, 44%)
HSVhsv(252, 72%, 68%)
CMYKcmyk(57.5%, 71.8%, 0%, 31.8%)
CIE-LABlab(31.13, 44.57, -62.83)
CIE-LCHlch(31.13, 77.04, 305.35°)
OKLaboklab(42.58% 0.0463 -0.1809)
OKLCHoklch(42.58% 0.187 284.4)
XYZxyz(11.5600, 6.7078, 40.7218)
Luminance0.0671 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A31AE #95AE31
analogous
#3156AE #4A31AE #8831AE
triadic
#4A31AE #AE4A31 #31AE4A
tetradic
#4A31AE #AE3156 #95AE31 #31AE88
square
#4A31AE #AE3156 #95AE31 #31AE88
split-complementary
#4A31AE #AE8831 #56AE31
monochromatic
#21164E #36247E #4A31AE #684FCD #917FDB

Accessibility & contrast

On white

8.97
#4A31AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#4A31AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A31AE
8.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A31AE#FFFFFF#000000##FFFFFF
##4A31AE1.008.972.348.97
#FFFFFF8.971.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB2
Deuteranopia (green-blind)
#0045AC
Tritanopia (blue-blind)
#16536C
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #4a31ae;
/* rgb */ color: rgb(74, 49, 174);
/* oklch */ color: oklch(42.6% 0.187 284.4);
Tailwind
colors: {
  custom: {
    50: '#876cc7',
    500: '#4a31ae',
    950: '#000000',
  },
}
SCSS
$custom: #4a31ae;
$custom-light: #876cc7;
$custom-dark: #000000;
JSON
{
  "hex": "#4a31ae",
  "rgb": {
    "r": 74,
    "g": 49,
    "b": 174
  },
  "hsl": {
    "h": 252,
    "s": 56.054,
    "l": 43.725
  },
  "oklch": {
    "l": 0.42579,
    "c": 0.18672,
    "h": 284.4
  },
  "luminance": 0.06708
}

Semantic roles & 50–950 ramp

primary
#4A31AE
secondary
#B4C477
accent
#DF48C1
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0713
muted
#7D7A82

Preview Lab

Preview with #4A31AE

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

Preview Lab → · Contrast checker → · Palette generator →

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