#4D2D9D#4D2D9D

#4D2D9D is a dark, vivid violet. Relative luminance 0.059; OKLCH L 40.8% C 0.170 H 289.8°. Best body text is #FFFFFF at 9.64:1 contrast (WCAG AA passes).

Color values

HEX#4D2D9D
RGBrgb(77, 45, 157)
HSLhsl(257, 55%, 40%)
HSVhsv(257, 71%, 62%)
CMYKcmyk(51%, 71.3%, 0%, 38.4%)
CIE-LABlab(29.13, 42.17, -55.85)
CIE-LCHlch(29.13, 69.98, 307.06°)
OKLaboklab(40.76% 0.0576 -0.1603)
OKLCHoklch(40.76% 0.17 289.8)
XYZxyz(10.0830, 5.8884, 32.4971)
Luminance0.0589 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2D9D #7D9D2D
analogous
#2D459D #4D2D9D #852D9D
triadic
#4D2D9D #9D4D2D #2D9D4D
tetradic
#4D2D9D #9D2D45 #7D9D2D #2D9D85
square
#4D2D9D #9D2D45 #7D9D2D #2D9D85
split-complementary
#4D2D9D #9D852D #459D2D
monochromatic
#1E123E #361F6D #4D2D9D #663FC8 #8C6FD6

Accessibility & contrast

On white

9.64
#4D2D9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#4D2D9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D2D9D
9.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2D9D#FFFFFF#000000##FFFFFF
##4D2D9D1.009.642.189.64
#FFFFFF9.641.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A0
Deuteranopia (green-blind)
#00429B
Tritanopia (blue-blind)
#314A62
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #4d2d9d;
/* rgb */ color: rgb(77, 45, 157);
/* oklch */ color: oklch(40.8% 0.170 289.8);
Tailwind
colors: {
  custom: {
    50: '#8769bb',
    500: '#4d2d9d',
    950: '#000000',
  },
}
SCSS
$custom: #4d2d9d;
$custom-light: #8769bb;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2d9d",
  "rgb": {
    "r": 77,
    "g": 45,
    "b": 157
  },
  "hsl": {
    "h": 257.143,
    "s": 55.446,
    "l": 39.608
  },
  "oklch": {
    "l": 0.40758,
    "c": 0.17033,
    "h": 289.8
  },
  "luminance": 0.05889
}

Semantic roles & 50–950 ramp

primary
#4D2D9D
secondary
#A5BD69
accent
#DF49B4
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4D2D9D

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

Preview Lab → · Contrast checker → · Palette generator →

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