#4D2D87#4D2D87

#4D2D87 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 38.9% C 0.143 H 295.3°. Best body text is #FFFFFF at 10.29:1 contrast (WCAG AA passes).

Color values

HEX#4D2D87
RGBrgb(77, 45, 135)
HSLhsl(261, 50%, 35%)
HSVhsv(261, 67%, 53%)
CMYKcmyk(43%, 66.7%, 0%, 47.1%)
CIE-LABlab(27.31, 35.79, -45.27)
CIE-LCHlch(27.31, 57.71, 308.33°)
OKLaboklab(38.88% 0.0611 -0.1292)
OKLCHoklch(38.88% 0.143 295.3)
XYZxyz(8.3710, 5.2036, 23.4803)
Luminance0.0520 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2D87 #67872D
analogous
#2D3A87 #4D2D87 #7A2D87
triadic
#4D2D87 #874D2D #2D874D
tetradic
#4D2D87 #872D3A #67872D #2D877A
square
#4D2D87 #872D3A #67872D #2D877A
split-complementary
#4D2D87 #877A2D #3A872D
monochromatic
#190E2B #331E59 #4D2D87 #673CB5 #8863CB

Accessibility & contrast

On white

10.29
#4D2D87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#4D2D87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D2D87
10.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2D87#FFFFFF#000000##FFFFFF
##4D2D871.0010.292.0410.29
#FFFFFF10.291.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00418A
Deuteranopia (green-blind)
#003F85
Tritanopia (blue-blind)
#3E4256
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4d2d87;
/* rgb */ color: rgb(77, 45, 135);
/* oklch */ color: oklch(38.9% 0.143 295.3);
Tailwind
colors: {
  custom: {
    50: '#8468ab',
    500: '#4d2d87',
    950: '#000000',
  },
}
SCSS
$custom: #4d2d87;
$custom-light: #8468ab;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2d87",
  "rgb": {
    "r": 77,
    "g": 45,
    "b": 135
  },
  "hsl": {
    "h": 261.333,
    "s": 50,
    "l": 35.294
  },
  "oklch": {
    "l": 0.38883,
    "c": 0.1429,
    "h": 295.3
  },
  "luminance": 0.05204
}

Semantic roles & 50–950 ramp

primary
#4D2D87
secondary
#94B25E
accent
#DA4EA8
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #4D2D87

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

Preview Lab → · Contrast checker → · Palette generator →

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