#4D2DCD#4D2DCD

#4D2DCD is a mid, highly saturated violet. Relative luminance 0.079; OKLCH L 45.4% C 0.226 H 281.6°. Best body text is #FFFFFF at 8.16:1 contrast (WCAG AA passes).

Color values

HEX#4D2DCD
RGBrgb(77, 45, 205)
HSLhsl(252, 64%, 49%)
HSVhsv(252, 78%, 80%)
CMYKcmyk(62.4%, 78%, 0%, 19.6%)
CIE-LABlab(33.69, 56.10, -76.89)
CIE-LCHlch(33.69, 95.18, 306.12°)
OKLaboklab(45.35% 0.0457 -0.2218)
OKLCHoklch(45.35% 0.226 281.6)
XYZxyz(15.0149, 7.8612, 58.4719)
Luminance0.0786 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2DCD #ADCD2D
analogous
#2D5DCD #4D2DCD #9D2DCD
triadic
#4D2DCD #CD4D2D #2DCD4D
tetradic
#4D2DCD #CD2D5D #ADCD2D #2DCD9D
square
#4D2DCD #CD2D5D #ADCD2D #2DCD9D
split-complementary
#4D2DCD #CD9D2D #5DCD2D
monochromatic
#271769 #3A229B #4D2DCD #755CDB #A08EE6

Accessibility & contrast

On white

8.16
#4D2DCD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#4D2DCD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D2DCD
8.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2DCD#FFFFFF#000000##FFFFFF
##4D2DCD1.008.162.578.16
#FFFFFF8.161.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054D1
Deuteranopia (green-blind)
#0049CA
Tritanopia (blue-blind)
#005D7D
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #4d2dcd;
/* rgb */ color: rgb(77, 45, 205);
/* oklch */ color: oklch(45.4% 0.226 281.6);
Tailwind
colors: {
  custom: {
    50: '#8f6bde',
    500: '#4d2dcd',
    950: '#000000',
  },
}
SCSS
$custom: #4d2dcd;
$custom-light: #8f6bde;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2dcd",
  "rgb": {
    "r": 77,
    "g": 45,
    "b": 205
  },
  "hsl": {
    "h": 252,
    "s": 64,
    "l": 49.02
  },
  "oklch": {
    "l": 0.4535,
    "c": 0.22649,
    "h": 281.6
  },
  "luminance": 0.07862
}

Semantic roles & 50–950 ramp

primary
#4D2DCD
secondary
#C2D185
accent
#E741C6
background
#F9F6FD
surface
#F2EBFB
border
#CCC6D4
text
#0E0715
muted
#7E7A83

Preview Lab

Preview with #4D2DCD

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

Preview Lab → · Contrast checker → · Palette generator →

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