#4D2CA2#4D2CA2

#4D2CA2 is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.1% C 0.178 H 288.9°. Best body text is #FFFFFF at 9.56:1 contrast (WCAG AA passes).

Color values

HEX#4D2CA2
RGBrgb(77, 44, 162)
HSLhsl(257, 57%, 40%)
HSVhsv(257, 73%, 64%)
CMYKcmyk(52.5%, 72.8%, 0%, 36.5%)
CIE-LABlab(29.38, 44.16, -58.47)
CIE-LCHlch(29.38, 73.28, 307.06°)
OKLaboklab(41.07% 0.0575 -0.168)
OKLCHoklch(41.07% 0.178 288.9)
XYZxyz(10.4809, 5.9873, 34.7788)
Luminance0.0599 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2CA2 #81A22C
analogous
#2C46A2 #4D2CA2 #882CA2
triadic
#4D2CA2 #A24D2C #2CA24D
tetradic
#4D2CA2 #A22C46 #81A22C #2CA288
square
#4D2CA2 #A22C46 #81A22C #2CA288
split-complementary
#4D2CA2 #A2882C #46A22C
monochromatic
#1F1242 #361F72 #4D2CA2 #6740CB #8D70D8

Accessibility & contrast

On white

9.56
#4D2CA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#4D2CA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D2CA2
9.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2CA2#FFFFFF#000000##FFFFFF
##4D2CA21.009.562.209.56
#FFFFFF9.561.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A5
Deuteranopia (green-blind)
#0042A0
Tritanopia (blue-blind)
#2D4B64
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #4d2ca2;
/* rgb */ color: rgb(77, 44, 162);
/* oklch */ color: oklch(41.1% 0.178 288.9);
Tailwind
colors: {
  custom: {
    50: '#8868bf',
    500: '#4d2ca2',
    950: '#000000',
  },
}
SCSS
$custom: #4d2ca2;
$custom-light: #8868bf;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2ca2",
  "rgb": {
    "r": 77,
    "g": 44,
    "b": 162
  },
  "hsl": {
    "h": 256.78,
    "s": 57.282,
    "l": 40.392
  },
  "oklch": {
    "l": 0.41073,
    "c": 0.17755,
    "h": 288.9
  },
  "luminance": 0.05988
}

Semantic roles & 50–950 ramp

primary
#4D2CA2
secondary
#A8BF6A
accent
#E147B6
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4D2CA2

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

Preview Lab → · Contrast checker → · Palette generator →

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