#4D32B2#4D32B2

#4D32B2 is a dark, vivid violet. Relative luminance 0.071; OKLCH L 43.4% C 0.190 H 284.9°. Best body text is #FFFFFF at 8.70:1 contrast (WCAG AA passes).

Color values

HEX#4D32B2
RGBrgb(77, 50, 178)
HSLhsl(253, 56%, 45%)
HSVhsv(253, 72%, 70%)
CMYKcmyk(56.7%, 71.9%, 0%, 30.2%)
CIE-LABlab(31.97, 45.68, -63.83)
CIE-LCHlch(31.97, 78.50, 305.59°)
OKLaboklab(43.36% 0.049 -0.1837)
OKLCHoklch(43.36% 0.19 284.9)
XYZxyz(12.2346, 7.0726, 42.8313)
Luminance0.0707 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D32B2 #97B232
analogous
#3257B2 #4D32B2 #8D32B2
triadic
#4D32B2 #B24D32 #32B24D
tetradic
#4D32B2 #B23257 #97B232 #32B28D
square
#4D32B2 #B23257 #97B232 #32B28D
split-complementary
#4D32B2 #B28D32 #57B232
monochromatic
#241752 #382582 #4D32B2 #6D53CF #9582DC

Accessibility & contrast

On white

8.70
#4D32B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#4D32B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D32B2
8.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D32B2#FFFFFF#000000##FFFFFF
##4D32B21.008.702.418.70
#FFFFFF8.701.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB6
Deuteranopia (green-blind)
#0047B0
Tritanopia (blue-blind)
#1B546F
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #4d32b2;
/* rgb */ color: rgb(77, 50, 178);
/* oklch */ color: oklch(43.4% 0.190 284.9);
Tailwind
colors: {
  custom: {
    50: '#8a6dca',
    500: '#4d32b2',
    950: '#000000',
  },
}
SCSS
$custom: #4d32b2;
$custom-light: #8a6dca;
$custom-dark: #000000;
JSON
{
  "hex": "#4d32b2",
  "rgb": {
    "r": 77,
    "g": 50,
    "b": 178
  },
  "hsl": {
    "h": 252.656,
    "s": 56.14,
    "l": 44.706
  },
  "oklch": {
    "l": 0.43355,
    "c": 0.19013,
    "h": 284.9
  },
  "luminance": 0.07073
}

Semantic roles & 50–950 ramp

primary
#4D32B2
secondary
#B6C57B
accent
#DF48C0
background
#F9F6FC
surface
#F1ECF9
border
#CBC7D2
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #4D32B2

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

Preview Lab → · Contrast checker → · Palette generator →

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