#4D328B#4D328B

#4D328B is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.0% C 0.141 H 292.9°. Best body text is #FFFFFF at 9.79:1 contrast (WCAG AA passes).

Color values

HEX#4D328B
RGBrgb(77, 50, 139)
HSLhsl(258, 47%, 37%)
HSVhsv(258, 64%, 55%)
CMYKcmyk(44.6%, 64%, 0%, 45.5%)
CIE-LABlab(28.70, 34.03, -45.49)
CIE-LCHlch(28.70, 56.81, 306.80°)
OKLaboklab(39.99% 0.0548 -0.1299)
OKLCHoklch(39.99% 0.141 292.9)
XYZxyz(8.8601, 5.7228, 25.0589)
Luminance0.0572 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D328B #708B32
analogous
#32448B #4D328B #7A328B
triadic
#4D328B #8B4D32 #328B4D
tetradic
#4D328B #8B3244 #708B32 #328B7A
square
#4D328B #8B3244 #708B32 #328B7A
split-complementary
#4D328B #8B7A32 #448B32
monochromatic
#1B1231 #34225E #4D328B #6642B8 #896DCA

Accessibility & contrast

On white

9.79
#4D328B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#4D328B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D328B
9.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D328B#FFFFFF#000000##FFFFFF
##4D328B1.009.792.149.79
#FFFFFF9.791.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00458E
Deuteranopia (green-blind)
#004289
Tritanopia (blue-blind)
#3C4659
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4d328b;
/* rgb */ color: rgb(77, 50, 139);
/* oklch */ color: oklch(40.0% 0.141 292.9);
Tailwind
colors: {
  custom: {
    50: '#846bae',
    500: '#4d328b',
    950: '#000000',
  },
}
SCSS
$custom: #4d328b;
$custom-light: #846bae;
$custom-dark: #000000;
JSON
{
  "hex": "#4d328b",
  "rgb": {
    "r": 77,
    "g": 50,
    "b": 139
  },
  "hsl": {
    "h": 258.202,
    "s": 47.09,
    "l": 37.059
  },
  "oklch": {
    "l": 0.39991,
    "c": 0.14096,
    "h": 292.9
  },
  "luminance": 0.05723
}

Semantic roles & 50–950 ramp

primary
#4D328B
secondary
#9BB267
accent
#D751AE
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B0710
muted
#7C7A7F

Preview Lab

Preview with #4D328B

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

Preview Lab → · Contrast checker → · Palette generator →

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