#4D2DCA#4D2DCA

#4D2DCA is a mid, highly saturated violet. Relative luminance 0.077; OKLCH L 45.0% C 0.223 H 282.0°. Best body text is #FFFFFF at 8.26:1 contrast (WCAG AA passes).

Color values

HEX#4D2DCA
RGBrgb(77, 45, 202)
HSLhsl(252, 64%, 48%)
HSVhsv(252, 78%, 79%)
CMYKcmyk(61.9%, 77.7%, 0%, 20.8%)
CIE-LABlab(33.39, 55.24, -75.64)
CIE-LCHlch(33.39, 93.67, 306.14°)
OKLaboklab(45.05% 0.0465 -0.2182)
OKLCHoklch(45.05% 0.223 282)
XYZxyz(14.6563, 7.7178, 56.5830)
Luminance0.0772 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2DCA #AACA2D
analogous
#2D5BCA #4D2DCA #9B2DCA
triadic
#4D2DCA #CA4D2D #2DCA4D
tetradic
#4D2DCA #CA2D5B #AACA2D #2DCA9B
square
#4D2DCA #CA2D5B #AACA2D #2DCA9B
split-complementary
#4D2DCA #CA9B2D #5BCA2D
monochromatic
#271766 #3A2298 #4D2DCA #745ADA #9E8CE5

Accessibility & contrast

On white

8.26
#4D2DCA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#4D2DCA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D2DCA
8.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2DCA#FFFFFF#000000##FFFFFF
##4D2DCA1.008.262.548.26
#FFFFFF8.261.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.261.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4d2dca;
/* rgb */ color: rgb(77, 45, 202);
/* oklch */ color: oklch(45.0% 0.223 282.0);
Tailwind
colors: {
  custom: {
    50: '#8e6bdb',
    500: '#4d2dca',
    950: '#000000',
  },
}
SCSS
$custom: #4d2dca;
$custom-light: #8e6bdb;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2dca",
  "rgb": {
    "r": 77,
    "g": 45,
    "b": 202
  },
  "hsl": {
    "h": 252.229,
    "s": 63.563,
    "l": 48.431
  },
  "oklch": {
    "l": 0.45047,
    "c": 0.2231,
    "h": 282
  },
  "luminance": 0.07719
}

Semantic roles & 50–950 ramp

primary
#4D2DCA
secondary
#C0CF83
accent
#E741C5
background
#F9F6FD
surface
#F2EBFB
border
#CCC6D4
text
#0E0715
muted
#7E7A83

Preview Lab

Preview with #4D2DCA

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

Preview Lab → · Contrast checker → · Palette generator →

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