#4D2FA7#4D2FA7

#4D2FA7 is a dark, vivid violet. Relative luminance 0.064; OKLCH L 41.9% C 0.180 H 287.4°. Best body text is #FFFFFF at 9.21:1 contrast (WCAG AA passes).

Color values

HEX#4D2FA7
RGBrgb(77, 47, 167)
HSLhsl(255, 56%, 42%)
HSVhsv(255, 72%, 65%)
CMYKcmyk(53.9%, 71.9%, 0%, 34.5%)
CIE-LABlab(30.40, 44.03, -59.82)
CIE-LCHlch(30.40, 74.28, 306.35°)
OKLaboklab(41.94% 0.0538 -0.1719)
OKLCHoklch(41.94% 0.18 287.4)
XYZxyz(11.0501, 6.4003, 37.2048)
Luminance0.0640 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2FA7 #89A72F
analogous
#2F4DA7 #4D2FA7 #892FA7
triadic
#4D2FA7 #A74D2F #2FA74D
tetradic
#4D2FA7 #A72F4D #89A72F #2FA789
square
#4D2FA7 #A72F4D #89A72F #2FA789
split-complementary
#4D2FA7 #A7892F #4DA72F
monochromatic
#211447 #372277 #4D2FA7 #6948CB #9078D9

Accessibility & contrast

On white

9.21
#4D2FA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#4D2FA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D2FA7
9.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2FA7#FFFFFF#000000##FFFFFF
##4D2FA71.009.212.289.21
#FFFFFF9.211.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AAB
Deuteranopia (green-blind)
#0044A5
Tritanopia (blue-blind)
#294F68
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #4d2fa7;
/* rgb */ color: rgb(77, 47, 167);
/* oklch */ color: oklch(41.9% 0.180 287.4);
Tailwind
colors: {
  custom: {
    50: '#886ac2',
    500: '#4d2fa7',
    950: '#000000',
  },
}
SCSS
$custom: #4d2fa7;
$custom-light: #886ac2;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2fa7",
  "rgb": {
    "r": 77,
    "g": 47,
    "b": 167
  },
  "hsl": {
    "h": 255,
    "s": 56.075,
    "l": 41.961
  },
  "oklch": {
    "l": 0.41935,
    "c": 0.18016,
    "h": 287.4
  },
  "luminance": 0.06401
}

Semantic roles & 50–950 ramp

primary
#4D2FA7
secondary
#ADC171
accent
#DF48BA
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0712
muted
#7D7A81

Preview Lab

Preview with #4D2FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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