#4D32B7#4D32B7

#4D32B7 is a dark, vivid violet. Relative luminance 0.073; OKLCH L 43.8% C 0.196 H 284.1°. Best body text is #FFFFFF at 8.55:1 contrast (WCAG AA passes).

Color values

HEX#4D32B7
RGBrgb(77, 50, 183)
HSLhsl(252, 57%, 46%)
HSVhsv(252, 73%, 72%)
CMYKcmyk(57.9%, 72.7%, 0%, 28.2%)
CIE-LABlab(32.43, 47.18, -66.05)
CIE-LCHlch(32.43, 81.17, 305.54°)
OKLaboklab(43.82% 0.0479 -0.1902)
OKLCHoklch(43.82% 0.196 284.1)
XYZxyz(12.7458, 7.2771, 45.5236)
Luminance0.0728 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D32B7 #9CB732
analogous
#325AB7 #4D32B7 #8F32B7
triadic
#4D32B7 #B74D32 #32B74D
tetradic
#4D32B7 #B7325A #9CB732 #32B78F
square
#4D32B7 #B7325A #9CB732 #32B78F
split-complementary
#4D32B7 #B78F32 #5AB732
monochromatic
#251857 #392587 #4D32B7 #6F56D1 #9786DE

Accessibility & contrast

On white

8.55
#4D32B7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#4D32B7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D32B7
8.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D32B7#FFFFFF#000000##FFFFFF
##4D32B71.008.552.468.55
#FFFFFF8.551.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050BB
Deuteranopia (green-blind)
#0048B5
Tritanopia (blue-blind)
#125671
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #4d32b7;
/* rgb */ color: rgb(77, 50, 183);
/* oklch */ color: oklch(43.8% 0.196 284.1);
Tailwind
colors: {
  custom: {
    50: '#8b6dce',
    500: '#4d32b7',
    950: '#000000',
  },
}
SCSS
$custom: #4d32b7;
$custom-light: #8b6dce;
$custom-dark: #000000;
JSON
{
  "hex": "#4d32b7",
  "rgb": {
    "r": 77,
    "g": 50,
    "b": 183
  },
  "hsl": {
    "h": 252.18,
    "s": 57.082,
    "l": 45.686
  },
  "oklch": {
    "l": 0.4382,
    "c": 0.19616,
    "h": 284.1
  },
  "luminance": 0.07278
}

Semantic roles & 50–950 ramp

primary
#4D32B7
secondary
#B8C77D
accent
#E047C1
background
#F9F6FC
surface
#F1ECF9
border
#CBC7D2
text
#0D0714
muted
#7E7A82

Preview Lab

Preview with #4D32B7

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

Preview Lab → · Contrast checker → · Palette generator →

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