#4B31AE#4B31AE

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

Color values

HEX#4B31AE
RGBrgb(75, 49, 174)
HSLhsl(252, 56%, 44%)
HSVhsv(252, 72%, 68%)
CMYKcmyk(56.9%, 71.8%, 0%, 31.8%)
CIE-LABlab(31.23, 44.72, -62.68)
CIE-LCHlch(31.23, 77.00, 305.51°)
OKLaboklab(42.67% 0.0477 -0.1804)
OKLCHoklch(42.67% 0.187 284.8)
XYZxyz(11.6376, 6.7478, 40.7254)
Luminance0.0675 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B31AE #94AE31
analogous
#3155AE #4B31AE #8931AE
triadic
#4B31AE #AE4B31 #31AE4B
tetradic
#4B31AE #AE3155 #94AE31 #31AE89
square
#4B31AE #AE3155 #94AE31 #31AE89
split-complementary
#4B31AE #AE8931 #55AE31
monochromatic
#22164E #36247E #4B31AE #694FCD #927FDB

Accessibility & contrast

On white

8.94
#4B31AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#4B31AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B31AE
8.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B31AE#FFFFFF#000000##FFFFFF
##4B31AE1.008.942.358.94
#FFFFFF8.941.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB2
Deuteranopia (green-blind)
#0046AC
Tritanopia (blue-blind)
#1A536C
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #4b31ae;
/* rgb */ color: rgb(75, 49, 174);
/* oklch */ color: oklch(42.7% 0.187 284.8);
Tailwind
colors: {
  custom: {
    50: '#886cc7',
    500: '#4b31ae',
    950: '#000000',
  },
}
SCSS
$custom: #4b31ae;
$custom-light: #886cc7;
$custom-dark: #000000;
JSON
{
  "hex": "#4b31ae",
  "rgb": {
    "r": 75,
    "g": 49,
    "b": 174
  },
  "hsl": {
    "h": 252.48,
    "s": 56.054,
    "l": 43.725
  },
  "oklch": {
    "l": 0.42668,
    "c": 0.1866,
    "h": 284.8
  },
  "luminance": 0.06748
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4B31AE

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

Preview Lab → · Contrast checker → · Palette generator →

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