#4D2EA2#4D2EA2

#4D2EA2 is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.3% C 0.175 H 288.5°. Best body text is #FFFFFF at 9.43:1 contrast (WCAG AA passes).

Color values

HEX#4D2EA2
RGBrgb(77, 46, 162)
HSLhsl(256, 56%, 41%)
HSVhsv(256, 72%, 64%)
CMYKcmyk(52.5%, 71.6%, 0%, 36.5%)
CIE-LABlab(29.76, 43.09, -57.85)
CIE-LCHlch(29.76, 72.13, 306.69°)
OKLaboklab(41.34% 0.0557 -0.1662)
OKLCHoklch(41.34% 0.175 288.5)
XYZxyz(10.5572, 6.1399, 34.8043)
Luminance0.0614 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2EA2 #83A22E
analogous
#2E49A2 #4D2EA2 #872EA2
triadic
#4D2EA2 #A24D2E #2EA24D
tetradic
#4D2EA2 #A22E49 #83A22E #2EA287
square
#4D2EA2 #A22E49 #83A22E #2EA287
split-complementary
#4D2EA2 #A2872E #49A22E
monochromatic
#201343 #362072 #4D2EA2 #6743CA #8E73D7

Accessibility & contrast

On white

9.43
#4D2EA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#4D2EA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D2EA2
9.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2EA2#FFFFFF#000000##FFFFFF
##4D2EA21.009.432.239.43
#FFFFFF9.431.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A5
Deuteranopia (green-blind)
#0043A0
Tritanopia (blue-blind)
#2D4C65
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4d2ea2;
/* rgb */ color: rgb(77, 46, 162);
/* oklch */ color: oklch(41.3% 0.175 288.5);
Tailwind
colors: {
  custom: {
    50: '#8769bf',
    500: '#4d2ea2',
    950: '#000000',
  },
}
SCSS
$custom: #4d2ea2;
$custom-light: #8769bf;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2ea2",
  "rgb": {
    "r": 77,
    "g": 46,
    "b": 162
  },
  "hsl": {
    "h": 256.034,
    "s": 55.769,
    "l": 40.784
  },
  "oklch": {
    "l": 0.41344,
    "c": 0.17524,
    "h": 288.5
  },
  "luminance": 0.0614
}

Semantic roles & 50–950 ramp

primary
#4D2EA2
secondary
#A9BF6D
accent
#DF49B7
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4D2EA2

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

Preview Lab → · Contrast checker → · Palette generator →

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