#4D2CA9#4D2CA9

#4D2CA9 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.7% C 0.186 H 287.5°. Best body text is #FFFFFF at 9.34:1 contrast (WCAG AA passes).

Color values

HEX#4D2CA9
RGBrgb(77, 44, 169)
HSLhsl(256, 59%, 42%)
HSVhsv(256, 74%, 66%)
CMYKcmyk(54.4%, 74%, 0%, 33.7%)
CIE-LABlab(30.02, 46.20, -61.65)
CIE-LCHlch(30.02, 77.04, 306.84°)
OKLaboklab(41.72% 0.0559 -0.1773)
OKLCHoklch(41.72% 0.186 287.5)
XYZxyz(11.1206, 6.2431, 38.1475)
Luminance0.0624 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2CA9 #88A92C
analogous
#2C4AA9 #4D2CA9 #8C2CA9
triadic
#4D2CA9 #A94D2C #2CA94D
tetradic
#4D2CA9 #A92C4A #88A92C #2CA98C
square
#4D2CA9 #A92C4A #88A92C #2CA98C
split-complementary
#4D2CA9 #A98C2C #4AA92C
monochromatic
#211348 #371F78 #4D2CA9 #6844CE #9074DB

Accessibility & contrast

On white

9.34
#4D2CA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#4D2CA9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D2CA9
9.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2CA9#FFFFFF#000000##FFFFFF
##4D2CA91.009.342.259.34
#FFFFFF9.341.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AAD
Deuteranopia (green-blind)
#0043A7
Tritanopia (blue-blind)
#274E68
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4d2ca9;
/* rgb */ color: rgb(77, 44, 169);
/* oklch */ color: oklch(41.7% 0.186 287.5);
Tailwind
colors: {
  custom: {
    50: '#8969c4',
    500: '#4d2ca9',
    950: '#000000',
  },
}
SCSS
$custom: #4d2ca9;
$custom-light: #8969c4;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2ca9",
  "rgb": {
    "r": 77,
    "g": 44,
    "b": 169
  },
  "hsl": {
    "h": 255.84,
    "s": 58.685,
    "l": 41.765
  },
  "oklch": {
    "l": 0.41719,
    "c": 0.1859,
    "h": 287.5
  },
  "luminance": 0.06244
}

Semantic roles & 50–950 ramp

primary
#4D2CA9
secondary
#ACC36E
accent
#E246B9
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0D0613
muted
#7D7A82

Preview Lab

Preview with #4D2CA9

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

Preview Lab → · Contrast checker → · Palette generator →

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