#4D32A1#4D32A1

#4D32A1 is a dark, vivid violet. Relative luminance 0.064; OKLCH L 41.8% C 0.169 H 287.9°. Best body text is #FFFFFF at 9.18:1 contrast (WCAG AA passes).

Color values

HEX#4D32A1
RGBrgb(77, 50, 161)
HSLhsl(255, 53%, 41%)
HSVhsv(255, 69%, 63%)
CMYKcmyk(52.2%, 68.9%, 0%, 36.9%)
CIE-LABlab(30.48, 40.59, -56.07)
CIE-LCHlch(30.48, 69.22, 305.90°)
OKLaboklab(41.83% 0.0521 -0.161)
OKLCHoklch(41.83% 0.169 287.9)
XYZxyz(10.6323, 6.4317, 34.3925)
Luminance0.0643 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D32A1 #86A132
analogous
#324EA1 #4D32A1 #8532A1
triadic
#4D32A1 #A14D32 #32A14D
tetradic
#4D32A1 #A1324E #86A132 #32A185
square
#4D32A1 #A1324E #86A132 #32A185
split-complementary
#4D32A1 #A18532 #4EA132
monochromatic
#201544 #372372 #4D32A1 #684AC7 #8F78D5

Accessibility & contrast

On white

9.18
#4D32A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#4D32A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D32A1
9.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D32A1#FFFFFF#000000##FFFFFF
##4D32A11.009.182.299.18
#FFFFFF9.181.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA4
Deuteranopia (green-blind)
#00459F
Tritanopia (blue-blind)
#2E4E65
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #4d32a1;
/* rgb */ color: rgb(77, 50, 161);
/* oklch */ color: oklch(41.8% 0.169 287.9);
Tailwind
colors: {
  custom: {
    50: '#876cbe',
    500: '#4d32a1',
    950: '#000000',
  },
}
SCSS
$custom: #4d32a1;
$custom-light: #876cbe;
$custom-dark: #000000;
JSON
{
  "hex": "#4d32a1",
  "rgb": {
    "r": 77,
    "g": 50,
    "b": 161
  },
  "hsl": {
    "h": 254.595,
    "s": 52.607,
    "l": 41.373
  },
  "oklch": {
    "l": 0.41827,
    "c": 0.1692,
    "h": 287.9
  },
  "luminance": 0.06432
}

Semantic roles & 50–950 ramp

primary
#4D32A1
secondary
#ABBE71
accent
#DC4CB9
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0712
muted
#7D7A81

Preview Lab

Preview with #4D32A1

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

Preview Lab → · Contrast checker → · Palette generator →

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