#4D2ECA#4D2ECA

#4D2ECA is a mid, highly saturated violet. Relative luminance 0.078; OKLCH L 45.2% C 0.222 H 281.9°. Best body text is #FFFFFF at 8.21:1 contrast (WCAG AA passes).

Color values

HEX#4D2ECA
RGBrgb(77, 46, 202)
HSLhsl(252, 63%, 49%)
HSVhsv(252, 77%, 79%)
CMYKcmyk(61.9%, 77.2%, 0%, 20.8%)
CIE-LABlab(33.55, 54.77, -75.37)
CIE-LCHlch(33.55, 93.17, 306.00°)
OKLaboklab(45.16% 0.0459 -0.2174)
OKLCHoklch(45.16% 0.222 281.9)
XYZxyz(14.6949, 7.7950, 56.5959)
Luminance0.0780 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2ECA #ABCA2E
analogous
#2E5DCA #4D2ECA #9B2ECA
triadic
#4D2ECA #CA4D2E #2ECA4D
tetradic
#4D2ECA #CA2E5D #ABCA2E #2ECA9B
square
#4D2ECA #CA2E5D #ABCA2E #2ECA9B
split-complementary
#4D2ECA #CA9B2E #5DCA2E
monochromatic
#271766 #3A2398 #4D2ECA #755BDA #9F8DE5

Accessibility & contrast

On white

8.21
#4D2ECA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#4D2ECA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D2ECA
8.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2ECA#FFFFFF#000000##FFFFFF
##4D2ECA1.008.212.568.21
#FFFFFF8.211.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054CE
Deuteranopia (green-blind)
#0049C7
Tritanopia (blue-blind)
#005C7B
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #4d2eca;
/* rgb */ color: rgb(77, 46, 202);
/* oklch */ color: oklch(45.2% 0.222 281.9);
Tailwind
colors: {
  custom: {
    50: '#8e6bdb',
    500: '#4d2eca',
    950: '#000000',
  },
}
SCSS
$custom: #4d2eca;
$custom-light: #8e6bdb;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2eca",
  "rgb": {
    "r": 77,
    "g": 46,
    "b": 202
  },
  "hsl": {
    "h": 251.923,
    "s": 62.903,
    "l": 48.627
  },
  "oklch": {
    "l": 0.45162,
    "c": 0.22222,
    "h": 281.9
  },
  "luminance": 0.07796
}

Semantic roles & 50–950 ramp

primary
#4D2ECA
secondary
#C0CF84
accent
#E642C5
background
#F9F6FD
surface
#F2EBFB
border
#CCC6D4
text
#0E0715
muted
#7E7A83

Preview Lab

Preview with #4D2ECA

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

Preview Lab → · Contrast checker → · Palette generator →

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