#4D2D9E#4D2D9E

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

Color values

HEX#4D2D9E
RGBrgb(77, 45, 158)
HSLhsl(257, 56%, 40%)
HSVhsv(257, 72%, 62%)
CMYKcmyk(51.3%, 71.5%, 0%, 38%)
CIE-LABlab(29.22, 42.46, -56.31)
CIE-LCHlch(29.22, 70.53, 307.02°)
OKLaboklab(40.85% 0.0574 -0.1617)
OKLCHoklch(40.85% 0.172 289.5)
XYZxyz(10.1687, 5.9227, 32.9485)
Luminance0.0592 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2D9E #7E9E2D
analogous
#2D469E #4D2D9E #852D9E
triadic
#4D2D9E #9E4D2D #2D9E4D
tetradic
#4D2D9E #9E2D46 #7E9E2D #2D9E85
square
#4D2D9E #9E2D46 #7E9E2D #2D9E85
split-complementary
#4D2D9E #9E852D #469E2D
monochromatic
#1F123F #361F6E #4D2D9E #6640C9 #8C6FD6

Accessibility & contrast

On white

9.61
#4D2D9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D2D9E
9.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2D9E#FFFFFF#000000##FFFFFF
##4D2D9E1.009.612.189.61
#FFFFFF9.611.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A1
Deuteranopia (green-blind)
#00429C
Tritanopia (blue-blind)
#304A62
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #4d2d9e;
/* rgb */ color: rgb(77, 45, 158);
/* oklch */ color: oklch(40.8% 0.172 289.5);
Tailwind
colors: {
  custom: {
    50: '#8769bc',
    500: '#4d2d9e',
    950: '#000000',
  },
}
SCSS
$custom: #4d2d9e;
$custom-light: #8769bc;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2d9e",
  "rgb": {
    "r": 77,
    "g": 45,
    "b": 158
  },
  "hsl": {
    "h": 256.991,
    "s": 55.665,
    "l": 39.804
  },
  "oklch": {
    "l": 0.40847,
    "c": 0.17155,
    "h": 289.5
  },
  "luminance": 0.05923
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4D2D9E

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

Preview Lab → · Contrast checker → · Palette generator →

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