#4D2C9B#4D2C9B

#4D2C9B is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.4% C 0.169 H 290.4°. Best body text is #FFFFFF at 9.77:1 contrast (WCAG AA passes).

Color values

HEX#4D2C9B
RGBrgb(77, 44, 155)
HSLhsl(258, 56%, 39%)
HSVhsv(258, 72%, 61%)
CMYKcmyk(50.3%, 71.6%, 0%, 39.2%)
CIE-LABlab(28.76, 42.13, -55.23)
CIE-LCHlch(28.76, 69.47, 307.34°)
OKLaboklab(40.44% 0.0589 -0.1585)
OKLCHoklch(40.44% 0.169 290.4)
XYZxyz(9.8760, 5.7453, 31.5926)
Luminance0.0575 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2C9B #7A9B2C
analogous
#2C439B #4D2C9B #852C9B
triadic
#4D2C9B #9B4D2C #2C9B4D
tetradic
#4D2C9B #9B2C43 #7A9B2C #2C9B85
square
#4D2C9B #9B2C43 #7A9B2C #2C9B85
split-complementary
#4D2C9B #9B852C #439B2C
monochromatic
#1E113C #351E6B #4D2C9B #663CC8 #8B6CD5

Accessibility & contrast

On white

9.77
#4D2C9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#4D2C9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D2C9B
9.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2C9B#FFFFFF#000000##FFFFFF
##4D2C9B1.009.772.159.77
#FFFFFF9.771.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00469E
Deuteranopia (green-blind)
#004199
Tritanopia (blue-blind)
#334960
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4d2c9b;
/* rgb */ color: rgb(77, 44, 155);
/* oklch */ color: oklch(40.4% 0.169 290.4);
Tailwind
colors: {
  custom: {
    50: '#8768b9',
    500: '#4d2c9b',
    950: '#000000',
  },
}
SCSS
$custom: #4d2c9b;
$custom-light: #8768b9;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2c9b",
  "rgb": {
    "r": 77,
    "g": 44,
    "b": 155
  },
  "hsl": {
    "h": 257.838,
    "s": 55.779,
    "l": 39.02
  },
  "oklch": {
    "l": 0.40441,
    "c": 0.16909,
    "h": 290.4
  },
  "luminance": 0.05746
}

Semantic roles & 50–950 ramp

primary
#4D2C9B
secondary
#A3BC67
accent
#DF49B2
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4D2C9B

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

Preview Lab → · Contrast checker → · Palette generator →

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