#4D328E#4D328E

#4D328E is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.2% C 0.145 H 292.1°. Best body text is #FFFFFF at 9.71:1 contrast (WCAG AA passes).

Color values

HEX#4D328E
RGBrgb(77, 50, 142)
HSLhsl(258, 48%, 38%)
HSVhsv(258, 65%, 56%)
CMYKcmyk(45.8%, 64.8%, 0%, 44.3%)
CIE-LABlab(28.93, 34.92, -46.97)
CIE-LCHlch(28.93, 58.53, 306.62°)
OKLaboklab(40.23% 0.0546 -0.1342)
OKLCHoklch(40.23% 0.145 292.1)
XYZxyz(9.0823, 5.8117, 26.2292)
Luminance0.0581 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D328E #738E32
analogous
#32458E #4D328E #7B328E
triadic
#4D328E #8E4D32 #328E4D
tetradic
#4D328E #8E3245 #738E32 #328E7B
square
#4D328E #8E3245 #738E32 #328E7B
split-complementary
#4D328E #8E7B32 #458E32
monochromatic
#1C1233 #342261 #4D328E #6642BB #8A6ECC

Accessibility & contrast

On white

9.71
#4D328E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#4D328E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D328E
9.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D328E#FFFFFF#000000##FFFFFF
##4D328E1.009.712.169.71
#FFFFFF9.711.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004691
Deuteranopia (green-blind)
#00428C
Tritanopia (blue-blind)
#3A475B
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4d328e;
/* rgb */ color: rgb(77, 50, 142);
/* oklch */ color: oklch(40.2% 0.145 292.1);
Tailwind
colors: {
  custom: {
    50: '#846bb0',
    500: '#4d328e',
    950: '#000000',
  },
}
SCSS
$custom: #4d328e;
$custom-light: #846bb0;
$custom-dark: #000000;
JSON
{
  "hex": "#4d328e",
  "rgb": {
    "r": 77,
    "g": 50,
    "b": 142
  },
  "hsl": {
    "h": 257.609,
    "s": 47.917,
    "l": 37.647
  },
  "oklch": {
    "l": 0.40231,
    "c": 0.14489,
    "h": 292.1
  },
  "luminance": 0.05812
}

Semantic roles & 50–950 ramp

primary
#4D328E
secondary
#9EB468
accent
#D850B0
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0B0710
muted
#7C7A7F

Preview Lab

Preview with #4D328E

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

Preview Lab → · Contrast checker → · Palette generator →

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