#4D2C96#4D2C96

#4D2C96 is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.0% C 0.163 H 291.6°. Best body text is #FFFFFF at 9.92:1 contrast (WCAG AA passes).

Color values

HEX#4D2C96
RGBrgb(77, 44, 150)
HSLhsl(259, 55%, 38%)
HSVhsv(259, 71%, 59%)
CMYKcmyk(48.7%, 70.7%, 0%, 41.2%)
CIE-LABlab(28.33, 40.68, -52.88)
CIE-LCHlch(28.33, 66.71, 307.57°)
OKLaboklab(40% 0.0599 -0.1516)
OKLCHoklch(40% 0.163 291.6)
XYZxyz(9.4647, 5.5808, 29.4268)
Luminance0.0558 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2C96 #75962C
analogous
#2C4096 #4D2C96 #822C96
triadic
#4D2C96 #964D2C #2C964D
tetradic
#4D2C96 #962C40 #75962C #2C9682
square
#4D2C96 #962C40 #75962C #2C9682
split-complementary
#4D2C96 #96822C #40962C
monochromatic
#1C1037 #351E67 #4D2C96 #653AC5 #8A69D3

Accessibility & contrast

On white

9.92
#4D2C96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#4D2C96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D2C96
9.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2C96#FFFFFF#000000##FFFFFF
##4D2C961.009.922.129.92
#FFFFFF9.921.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004499
Deuteranopia (green-blind)
#004194
Tritanopia (blue-blind)
#36475D
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #4d2c96;
/* rgb */ color: rgb(77, 44, 150);
/* oklch */ color: oklch(40.0% 0.163 291.6);
Tailwind
colors: {
  custom: {
    50: '#8668b6',
    500: '#4d2c96',
    950: '#000000',
  },
}
SCSS
$custom: #4d2c96;
$custom-light: #8668b6;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2c96",
  "rgb": {
    "r": 77,
    "g": 44,
    "b": 150
  },
  "hsl": {
    "h": 258.679,
    "s": 54.639,
    "l": 38.039
  },
  "oklch": {
    "l": 0.4,
    "c": 0.16297,
    "h": 291.6
  },
  "luminance": 0.05581
}

Semantic roles & 50–950 ramp

primary
#4D2C96
secondary
#9FBA64
accent
#DE4AB0
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #4D2C96

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

Preview Lab → · Contrast checker → · Palette generator →

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