#4D2D9B#4D2D9B

#4D2D9B is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.6% C 0.168 H 290.2°. Best body text is #FFFFFF at 9.70:1 contrast (WCAG AA passes).

Color values

HEX#4D2D9B
RGBrgb(77, 45, 155)
HSLhsl(257, 55%, 39%)
HSVhsv(257, 71%, 61%)
CMYKcmyk(50.3%, 71%, 0%, 39.2%)
CIE-LABlab(28.96, 41.59, -54.91)
CIE-LCHlch(28.96, 68.88, 307.14°)
OKLaboklab(40.58% 0.058 -0.1575)
OKLCHoklch(40.58% 0.168 290.2)
XYZxyz(9.9137, 5.8207, 31.6051)
Luminance0.0582 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2D9B #7B9B2D
analogous
#2D449B #4D2D9B #842D9B
triadic
#4D2D9B #9B4D2D #2D9B4D
tetradic
#4D2D9B #9B2D44 #7B9B2D #2D9B84
square
#4D2D9B #9B2D44 #7B9B2D #2D9B84
split-complementary
#4D2D9B #9B842D #449B2D
monochromatic
#1E113C #351F6C #4D2D9B #663EC7 #8C6ED5

Accessibility & contrast

On white

9.70
#4D2D9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D2D9B
9.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2D9B#FFFFFF#000000##FFFFFF
##4D2D9B1.009.702.169.70
#FFFFFF9.701.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.701.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4d2d9b;
/* rgb */ color: rgb(77, 45, 155);
/* oklch */ color: oklch(40.6% 0.168 290.2);
Tailwind
colors: {
  custom: {
    50: '#8669b9',
    500: '#4d2d9b',
    950: '#000000',
  },
}
SCSS
$custom: #4d2d9b;
$custom-light: #8669b9;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2d9b",
  "rgb": {
    "r": 77,
    "g": 45,
    "b": 155
  },
  "hsl": {
    "h": 257.455,
    "s": 55,
    "l": 39.216
  },
  "oklch": {
    "l": 0.4058,
    "c": 0.16788,
    "h": 290.2
  },
  "luminance": 0.05821
}

Semantic roles & 50–950 ramp

primary
#4D2D9B
secondary
#A3BC68
accent
#DE49B3
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4D2D9B

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

Preview Lab → · Contrast checker → · Palette generator →

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