#4D2DA1#4D2DA1

#4D2DA1 is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.1% C 0.175 H 288.9°. Best body text is #FFFFFF at 9.52:1 contrast (WCAG AA passes).

Color values

HEX#4D2DA1
RGBrgb(77, 45, 161)
HSLhsl(257, 56%, 40%)
HSVhsv(257, 72%, 63%)
CMYKcmyk(52.2%, 72%, 0%, 36.9%)
CIE-LABlab(29.48, 43.34, -57.70)
CIE-LCHlch(29.48, 72.17, 306.91°)
OKLaboklab(41.12% 0.0568 -0.1657)
OKLCHoklch(41.12% 0.175 288.9)
XYZxyz(10.4301, 6.0273, 34.3251)
Luminance0.0603 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2DA1 #81A12D
analogous
#2D47A1 #4D2DA1 #872DA1
triadic
#4D2DA1 #A14D2D #2DA14D
tetradic
#4D2DA1 #A12D47 #81A12D #2DA187
square
#4D2DA1 #A12D47 #81A12D #2DA187
split-complementary
#4D2DA1 #A1872D #47A12D
monochromatic
#1F1241 #362071 #4D2DA1 #6741CA #8D71D7

Accessibility & contrast

On white

9.52
#4D2DA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#4D2DA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D2DA1
9.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2DA1#FFFFFF#000000##FFFFFF
##4D2DA11.009.522.219.52
#FFFFFF9.521.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A4
Deuteranopia (green-blind)
#00439F
Tritanopia (blue-blind)
#2E4B64
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #4d2da1;
/* rgb */ color: rgb(77, 45, 161);
/* oklch */ color: oklch(41.1% 0.175 288.9);
Tailwind
colors: {
  custom: {
    50: '#8769be',
    500: '#4d2da1',
    950: '#000000',
  },
}
SCSS
$custom: #4d2da1;
$custom-light: #8769be;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2da1",
  "rgb": {
    "r": 77,
    "g": 45,
    "b": 161
  },
  "hsl": {
    "h": 256.552,
    "s": 56.311,
    "l": 40.392
  },
  "oklch": {
    "l": 0.41117,
    "c": 0.17519,
    "h": 288.9
  },
  "luminance": 0.06028
}

Semantic roles & 50–950 ramp

primary
#4D2DA1
secondary
#A8BF6B
accent
#E048B6
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4D2DA1

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

Preview Lab → · Contrast checker → · Palette generator →

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