#4D32B8#4D32B8

#4D32B8 is a dark, vivid violet. Relative luminance 0.073; OKLCH L 43.9% C 0.197 H 284.0°. Best body text is #FFFFFF at 8.52:1 contrast (WCAG AA passes).

Color values

HEX#4D32B8
RGBrgb(77, 50, 184)
HSLhsl(252, 57%, 46%)
HSVhsv(252, 73%, 72%)
CMYKcmyk(58.2%, 72.8%, 0%, 27.8%)
CIE-LABlab(32.52, 47.47, -66.49)
CIE-LCHlch(32.52, 81.70, 305.53°)
OKLaboklab(43.91% 0.0477 -0.1915)
OKLCHoklch(43.91% 0.197 284)
XYZxyz(12.8502, 7.3189, 46.0737)
Luminance0.0732 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D32B8 #9DB832
analogous
#325AB8 #4D32B8 #9032B8
triadic
#4D32B8 #B84D32 #32B84D
tetradic
#4D32B8 #B8325A #9DB832 #32B890
square
#4D32B8 #B8325A #9DB832 #32B890
split-complementary
#4D32B8 #B89032 #5AB832
monochromatic
#251858 #392588 #4D32B8 #6F56D1 #9886DE

Accessibility & contrast

On white

8.52
#4D32B8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D32B8
8.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D32B8#FFFFFF#000000##FFFFFF
##4D32B81.008.522.468.52
#FFFFFF8.521.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.521.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4d32b8;
/* rgb */ color: rgb(77, 50, 184);
/* oklch */ color: oklch(43.9% 0.197 284.0);
Tailwind
colors: {
  custom: {
    50: '#8b6dce',
    500: '#4d32b8',
    950: '#000000',
  },
}
SCSS
$custom: #4d32b8;
$custom-light: #8b6dce;
$custom-dark: #000000;
JSON
{
  "hex": "#4d32b8",
  "rgb": {
    "r": 77,
    "g": 50,
    "b": 184
  },
  "hsl": {
    "h": 252.09,
    "s": 57.265,
    "l": 45.882
  },
  "oklch": {
    "l": 0.43914,
    "c": 0.19736,
    "h": 284
  },
  "luminance": 0.0732
}

Semantic roles & 50–950 ramp

primary
#4D32B8
secondary
#B9C87E
accent
#E147C2
background
#F9F6FC
surface
#F1ECF9
border
#CBC7D2
text
#0D0714
muted
#7E7A82

Preview Lab

Preview with #4D32B8

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

Preview Lab → · Contrast checker → · Palette generator →

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