#4D2C84#4D2C84

#4D2C84 is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.5% C 0.141 H 296.4°. Best body text is #FFFFFF at 10.45:1 contrast (WCAG AA passes).

Color values

HEX#4D2C84
RGBrgb(77, 44, 132)
HSLhsl(263, 50%, 35%)
HSVhsv(263, 67%, 52%)
CMYKcmyk(41.7%, 66.7%, 0%, 48.2%)
CIE-LABlab(26.86, 35.51, -44.11)
CIE-LCHlch(26.86, 56.63, 308.83°)
OKLaboklab(38.49% 0.0626 -0.1258)
OKLCHoklch(38.49% 0.141 296.4)
XYZxyz(8.1250, 5.0449, 22.3710)
Luminance0.0505 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2C84 #63842C
analogous
#2C3784 #4D2C84 #792C84
triadic
#4D2C84 #844D2C #2C844D
tetradic
#4D2C84 #842C37 #63842C #2C8479
square
#4D2C84 #842C37 #63842C #2C8479
split-complementary
#4D2C84 #84792C #37842C
monochromatic
#170D28 #321D56 #4D2C84 #683BB2 #8860CA

Accessibility & contrast

On white

10.45
#4D2C84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#4D2C84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D2C84
10.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2C84#FFFFFF#000000##FFFFFF
##4D2C841.0010.452.0110.45
#FFFFFF10.451.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004087
Deuteranopia (green-blind)
#003E82
Tritanopia (blue-blind)
#3F4054
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #4d2c84;
/* rgb */ color: rgb(77, 44, 132);
/* oklch */ color: oklch(38.5% 0.141 296.4);
Tailwind
colors: {
  custom: {
    50: '#8367a8',
    500: '#4d2c84',
    950: '#000000',
  },
}
SCSS
$custom: #4d2c84;
$custom-light: #8367a8;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2c84",
  "rgb": {
    "r": 77,
    "g": 44,
    "b": 132
  },
  "hsl": {
    "h": 262.5,
    "s": 50,
    "l": 34.51
  },
  "oklch": {
    "l": 0.38488,
    "c": 0.1405,
    "h": 296.4
  },
  "luminance": 0.05045
}

Semantic roles & 50–950 ramp

primary
#4D2C84
secondary
#90B05C
accent
#DA4EA5
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #4D2C84

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

Preview Lab → · Contrast checker → · Palette generator →

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