#4D2AAB#4D2AAB

#4D2AAB is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.7% C 0.190 H 287.4°. Best body text is #FFFFFF at 9.40:1 contrast (WCAG AA passes).

Color values

HEX#4D2AAB
RGBrgb(77, 42, 171)
HSLhsl(256, 61%, 42%)
HSVhsv(256, 75%, 67%)
CMYKcmyk(55%, 75.4%, 0%, 32.9%)
CIE-LABlab(29.85, 47.79, -63.14)
CIE-LCHlch(29.85, 79.18, 307.12°)
OKLaboklab(41.66% 0.057 -0.1816)
OKLCHoklch(41.66% 0.19 287.4)
XYZxyz(11.2370, 6.1734, 39.1197)
Luminance0.0617 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2AAB #88AB2A
analogous
#2A48AB #4D2AAB #8E2AAB
triadic
#4D2AAB #AB4D2A #2AAB4D
tetradic
#4D2AAB #AB2A48 #88AB2A #2AAB8E
square
#4D2AAB #AB2A48 #88AB2A #2AAB8E
split-complementary
#4D2AAB #AB8E2A #48AB2A
monochromatic
#211249 #371E7A #4D2AAB #6842D1 #9073DD

Accessibility & contrast

On white

9.40
#4D2AAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D2AAB
9.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2AAB#FFFFFF#000000##FFFFFF
##4D2AAB1.009.402.239.40
#FFFFFF9.401.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049AF
Deuteranopia (green-blind)
#0043A9
Tritanopia (blue-blind)
#254E69
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4d2aab;
/* rgb */ color: rgb(77, 42, 171);
/* oklch */ color: oklch(41.7% 0.190 287.4);
Tailwind
colors: {
  custom: {
    50: '#8968c5',
    500: '#4d2aab',
    950: '#000000',
  },
}
SCSS
$custom: #4d2aab;
$custom-light: #8968c5;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2aab",
  "rgb": {
    "r": 77,
    "g": 42,
    "b": 171
  },
  "hsl": {
    "h": 256.279,
    "s": 60.563,
    "l": 41.765
  },
  "oklch": {
    "l": 0.41655,
    "c": 0.19036,
    "h": 287.4
  },
  "luminance": 0.06174
}

Semantic roles & 50–950 ramp

primary
#4D2AAB
secondary
#ACC46D
accent
#E444B8
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #4D2AAB

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

Preview Lab → · Contrast checker → · Palette generator →

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