#4D2D9C#4D2D9C

#4D2D9C is a dark, vivid violet. Relative luminance 0.059; OKLCH L 40.7% C 0.169 H 290.0°. Best body text is #FFFFFF at 9.67:1 contrast (WCAG AA passes).

Color values

HEX#4D2D9C
RGBrgb(77, 45, 156)
HSLhsl(257, 55%, 39%)
HSVhsv(257, 71%, 61%)
CMYKcmyk(50.6%, 71.2%, 0%, 38.8%)
CIE-LABlab(29.04, 41.88, -55.38)
CIE-LCHlch(29.04, 69.43, 307.10°)
OKLaboklab(40.67% 0.0578 -0.1589)
OKLCHoklch(40.67% 0.169 290)
XYZxyz(9.9980, 5.8544, 32.0493)
Luminance0.0585 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2D9C #7C9C2D
analogous
#2D459C #4D2D9C #852D9C
triadic
#4D2D9C #9C4D2D #2D9C4D
tetradic
#4D2D9C #9C2D45 #7C9C2D #2D9C85
square
#4D2D9C #9C2D45 #7C9C2D #2D9C85
split-complementary
#4D2D9C #9C852D #459C2D
monochromatic
#1E123D #361F6D #4D2D9C #663FC8 #8C6ED5

Accessibility & contrast

On white

9.67
#4D2D9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#4D2D9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D2D9C
9.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2D9C#FFFFFF#000000##FFFFFF
##4D2D9C1.009.672.179.67
#FFFFFF9.671.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00469F
Deuteranopia (green-blind)
#00429A
Tritanopia (blue-blind)
#324A61
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4d2d9c;
/* rgb */ color: rgb(77, 45, 156);
/* oklch */ color: oklch(40.7% 0.169 290.0);
Tailwind
colors: {
  custom: {
    50: '#8769ba',
    500: '#4d2d9c',
    950: '#000000',
  },
}
SCSS
$custom: #4d2d9c;
$custom-light: #8769ba;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2d9c",
  "rgb": {
    "r": 77,
    "g": 45,
    "b": 156
  },
  "hsl": {
    "h": 257.297,
    "s": 55.224,
    "l": 39.412
  },
  "oklch": {
    "l": 0.40669,
    "c": 0.1691,
    "h": 290
  },
  "luminance": 0.05855
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4D2D9C

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

Preview Lab → · Contrast checker → · Palette generator →

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