#4D2D9F#4D2D9F

#4D2D9F is a dark, vivid violet. Relative luminance 0.060; OKLCH L 40.9% C 0.173 H 289.3°. Best body text is #FFFFFF at 9.58:1 contrast (WCAG AA passes).

Color values

HEX#4D2D9F
RGBrgb(77, 45, 159)
HSLhsl(257, 56%, 40%)
HSVhsv(257, 72%, 62%)
CMYKcmyk(51.6%, 71.7%, 0%, 37.6%)
CIE-LABlab(29.30, 42.76, -56.78)
CIE-LCHlch(29.30, 71.08, 306.98°)
OKLaboklab(40.94% 0.0572 -0.163)
OKLCHoklch(40.94% 0.173 289.3)
XYZxyz(10.2552, 5.9573, 33.4037)
Luminance0.0596 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2D9F #7F9F2D
analogous
#2D469F #4D2D9F #862D9F
triadic
#4D2D9F #9F4D2D #2D9F4D
tetradic
#4D2D9F #9F2D46 #7F9F2D #2D9F86
square
#4D2D9F #9F2D46 #7F9F2D #2D9F86
split-complementary
#4D2D9F #9F862D #469F2D
monochromatic
#1F1240 #36206F #4D2D9F #6740C9 #8D70D6

Accessibility & contrast

On white

9.58
#4D2D9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#4D2D9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D2D9F
9.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2D9F#FFFFFF#000000##FFFFFF
##4D2D9F1.009.582.199.58
#FFFFFF9.581.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A2
Deuteranopia (green-blind)
#00429D
Tritanopia (blue-blind)
#304B63
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #4d2d9f;
/* rgb */ color: rgb(77, 45, 159);
/* oklch */ color: oklch(40.9% 0.173 289.3);
Tailwind
colors: {
  custom: {
    50: '#8769bc',
    500: '#4d2d9f',
    950: '#000000',
  },
}
SCSS
$custom: #4d2d9f;
$custom-light: #8769bc;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2d9f",
  "rgb": {
    "r": 77,
    "g": 45,
    "b": 159
  },
  "hsl": {
    "h": 256.842,
    "s": 55.882,
    "l": 40
  },
  "oklch": {
    "l": 0.40937,
    "c": 0.17276,
    "h": 289.3
  },
  "luminance": 0.05958
}

Semantic roles & 50–950 ramp

primary
#4D2D9F
secondary
#A6BE6A
accent
#DF49B5
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4D2D9F

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

Preview Lab → · Contrast checker → · Palette generator →

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