#4D32A2#4D32A2

#4D32A2 is a dark, vivid violet. Relative luminance 0.065; OKLCH L 41.9% C 0.170 H 287.7°. Best body text is #FFFFFF at 9.16:1 contrast (WCAG AA passes).

Color values

HEX#4D32A2
RGBrgb(77, 50, 162)
HSLhsl(254, 53%, 42%)
HSVhsv(254, 69%, 64%)
CMYKcmyk(52.5%, 69.1%, 0%, 36.5%)
CIE-LABlab(30.56, 40.89, -56.54)
CIE-LCHlch(30.56, 69.78, 305.87°)
OKLaboklab(41.92% 0.052 -0.1623)
OKLCHoklch(41.92% 0.17 287.7)
XYZxyz(10.7208, 6.4671, 34.8588)
Luminance0.0647 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D32A2 #87A232
analogous
#324FA2 #4D32A2 #8532A2
triadic
#4D32A2 #A24D32 #32A24D
tetradic
#4D32A2 #A2324F #87A232 #32A285
square
#4D32A2 #A2324F #87A232 #32A285
split-complementary
#4D32A2 #A28532 #4FA232
monochromatic
#211544 #372473 #4D32A2 #684AC7 #8F79D6

Accessibility & contrast

On white

9.16
#4D32A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D32A2
9.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D32A2#FFFFFF#000000##FFFFFF
##4D32A21.009.162.299.16
#FFFFFF9.161.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA5
Deuteranopia (green-blind)
#0045A0
Tritanopia (blue-blind)
#2D4F66
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #4d32a2;
/* rgb */ color: rgb(77, 50, 162);
/* oklch */ color: oklch(41.9% 0.170 287.7);
Tailwind
colors: {
  custom: {
    50: '#876cbe',
    500: '#4d32a2',
    950: '#000000',
  },
}
SCSS
$custom: #4d32a2;
$custom-light: #876cbe;
$custom-dark: #000000;
JSON
{
  "hex": "#4d32a2",
  "rgb": {
    "r": 77,
    "g": 50,
    "b": 162
  },
  "hsl": {
    "h": 254.464,
    "s": 52.83,
    "l": 41.569
  },
  "oklch": {
    "l": 0.41915,
    "c": 0.17045,
    "h": 287.7
  },
  "luminance": 0.06468
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4D32A2

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

Preview Lab → · Contrast checker → · Palette generator →

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