#4D2DB5#4D2DB5

#4D2DB5 is a dark, vivid violet. Relative luminance 0.068; OKLCH L 43.0% C 0.199 H 285.2°. Best body text is #FFFFFF at 8.91:1 contrast (WCAG AA passes).

Color values

HEX#4D2DB5
RGBrgb(77, 45, 181)
HSLhsl(254, 60%, 44%)
HSVhsv(254, 75%, 71%)
CMYKcmyk(57.5%, 75.1%, 0%, 29%)
CIE-LABlab(31.32, 49.18, -66.68)
CIE-LCHlch(31.32, 82.85, 306.41°)
OKLaboklab(42.98% 0.0521 -0.192)
OKLCHoklch(42.98% 0.199 285.2)
XYZxyz(12.3369, 6.7900, 44.3676)
Luminance0.0679 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2DB5 #95B52D
analogous
#2D51B5 #4D2DB5 #912DB5
triadic
#4D2DB5 #B54D2D #2DB54D
tetradic
#4D2DB5 #B52D51 #95B52D #2DB591
square
#4D2DB5 #B52D51 #95B52D #2DB591
split-complementary
#4D2DB5 #B5912D #51B52D
monochromatic
#231553 #382184 #4D2DB5 #6C4DD3 #947EDF

Accessibility & contrast

On white

8.91
#4D2DB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#4D2DB5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D2DB5
8.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2DB5#FFFFFF#000000##FFFFFF
##4D2DB51.008.912.368.91
#FFFFFF8.911.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB9
Deuteranopia (green-blind)
#0045B2
Tritanopia (blue-blind)
#17536F
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #4d2db5;
/* rgb */ color: rgb(77, 45, 181);
/* oklch */ color: oklch(43.0% 0.199 285.2);
Tailwind
colors: {
  custom: {
    50: '#8b6acc',
    500: '#4d2db5',
    950: '#000000',
  },
}
SCSS
$custom: #4d2db5;
$custom-light: #8b6acc;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2db5",
  "rgb": {
    "r": 77,
    "g": 45,
    "b": 181
  },
  "hsl": {
    "h": 254.118,
    "s": 60.177,
    "l": 44.314
  },
  "oklch": {
    "l": 0.42982,
    "c": 0.19898,
    "h": 285.2
  },
  "luminance": 0.06791
}

Semantic roles & 50–950 ramp

primary
#4D2DB5
secondary
#B4C776
accent
#E344BE
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0714
muted
#7E7A82

Preview Lab

Preview with #4D2DB5

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

Preview Lab → · Contrast checker → · Palette generator →

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