#4D2CD4#4D2CD4

#4D2CD4 is a mid, highly saturated violet. Relative luminance 0.081; OKLCH L 46.0% C 0.235 H 280.8°. Best body text is #FFFFFF at 8.00:1 contrast (WCAG AA passes).

Color values

HEX#4D2CD4
RGBrgb(77, 44, 212)
HSLhsl(252, 66%, 50%)
HSVhsv(252, 79%, 83%)
CMYKcmyk(63.7%, 79.2%, 0%, 16.9%)
CIE-LABlab(34.26, 58.54, -80.02)
CIE-LCHlch(34.26, 99.15, 306.19°)
OKLaboklab(45.96% 0.0442 -0.2309)
OKLCHoklch(45.96% 0.235 280.8)
XYZxyz(15.8412, 8.1314, 63.0093)
Luminance0.0813 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2CD4 #B3D42C
analogous
#2C5FD4 #4D2CD4 #A12CD4
triadic
#4D2CD4 #D44D2C #2CD44D
tetradic
#4D2CD4 #D42C5F #B3D42C #2CD4A1
square
#4D2CD4 #D42C5F #B3D42C #2CD4A1
split-complementary
#4D2CD4 #D4A12C #5FD42C
monochromatic
#28176F #3A21A2 #4D2CD4 #785FDE #A392E9

Accessibility & contrast

On white

8.00
#4D2CD4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#4D2CD4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D2CD4
8.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2CD4#FFFFFF#000000##FFFFFF
##4D2CD41.008.002.638.00
#FFFFFF8.001.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF8.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056D9
Deuteranopia (green-blind)
#004AD1
Tritanopia (blue-blind)
#005F81
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #4d2cd4;
/* rgb */ color: rgb(77, 44, 212);
/* oklch */ color: oklch(46.0% 0.235 280.8);
Tailwind
colors: {
  custom: {
    50: '#906be3',
    500: '#4d2cd4',
    950: '#000000',
  },
}
SCSS
$custom: #4d2cd4;
$custom-light: #906be3;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2cd4",
  "rgb": {
    "r": 77,
    "g": 44,
    "b": 212
  },
  "hsl": {
    "h": 251.786,
    "s": 66.142,
    "l": 50.196
  },
  "oklch": {
    "l": 0.45955,
    "c": 0.23513,
    "h": 280.8
  },
  "luminance": 0.08133
}

Semantic roles & 50–950 ramp

primary
#4D2CD4
secondary
#C5D388
accent
#E93FC8
background
#F9F6FE
surface
#F2EBFC
border
#CCC6D5
text
#0E0716
muted
#7E7A84

Preview Lab

Preview with #4D2CD4

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

Preview Lab → · Contrast checker → · Palette generator →

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