#4D2C87#4D2C87

#4D2C87 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 38.7% C 0.144 H 295.5°. Best body text is #FFFFFF at 10.37:1 contrast (WCAG AA passes).

Color values

HEX#4D2C87
RGBrgb(77, 44, 135)
HSLhsl(262, 51%, 35%)
HSVhsv(262, 67%, 53%)
CMYKcmyk(43%, 67.4%, 0%, 47.1%)
CIE-LABlab(27.10, 36.36, -45.61)
CIE-LCHlch(27.10, 58.33, 308.56°)
OKLaboklab(38.73% 0.0622 -0.1302)
OKLCHoklch(38.73% 0.144 295.5)
XYZxyz(8.3333, 5.1282, 23.4678)
Luminance0.0513 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2C87 #66872C
analogous
#2C3987 #4D2C87 #7A2C87
triadic
#4D2C87 #874D2C #2C874D
tetradic
#4D2C87 #872C39 #66872C #2C877A
square
#4D2C87 #872C39 #66872C #2C877A
split-complementary
#4D2C87 #877A2C #39872C
monochromatic
#180E2B #331D59 #4D2C87 #673BB5 #8862CC

Accessibility & contrast

On white

10.37
#4D2C87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#4D2C87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D2C87
10.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2C87#FFFFFF#000000##FFFFFF
##4D2C871.0010.372.0310.37
#FFFFFF10.371.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.371.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4d2c87;
/* rgb */ color: rgb(77, 44, 135);
/* oklch */ color: oklch(38.7% 0.144 295.5);
Tailwind
colors: {
  custom: {
    50: '#8467ab',
    500: '#4d2c87',
    950: '#000000',
  },
}
SCSS
$custom: #4d2c87;
$custom-light: #8467ab;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2c87",
  "rgb": {
    "r": 77,
    "g": 44,
    "b": 135
  },
  "hsl": {
    "h": 261.758,
    "s": 50.838,
    "l": 35.098
  },
  "oklch": {
    "l": 0.38731,
    "c": 0.1443,
    "h": 295.5
  },
  "luminance": 0.05128
}

Semantic roles & 50–950 ramp

primary
#4D2C87
secondary
#93B25D
accent
#DA4DA7
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #4D2C87

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

Preview Lab → · Contrast checker → · Palette generator →

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