#4D2FA6#4D2FA6

#4D2FA6 is a dark, vivid violet. Relative luminance 0.064; OKLCH L 41.8% C 0.179 H 287.6°. Best body text is #FFFFFF at 9.24:1 contrast (WCAG AA passes).

Color values

HEX#4D2FA6
RGBrgb(77, 47, 166)
HSLhsl(255, 56%, 42%)
HSVhsv(255, 72%, 65%)
CMYKcmyk(53.6%, 71.7%, 0%, 34.9%)
CIE-LABlab(30.31, 43.73, -59.36)
CIE-LCHlch(30.31, 73.73, 306.38°)
OKLaboklab(41.84% 0.054 -0.1706)
OKLCHoklch(41.84% 0.179 287.6)
XYZxyz(10.9580, 6.3634, 36.7199)
Luminance0.0636 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2FA6 #88A62F
analogous
#2F4DA6 #4D2FA6 #892FA6
triadic
#4D2FA6 #A64D2F #2FA64D
tetradic
#4D2FA6 #A62F4D #88A62F #2FA689
square
#4D2FA6 #A62F4D #88A62F #2FA689
split-complementary
#4D2FA6 #A6892F #4DA62F
monochromatic
#211447 #372176 #4D2FA6 #6847CB #9077D8

Accessibility & contrast

On white

9.24
#4D2FA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#4D2FA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D2FA6
9.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2FA6#FFFFFF#000000##FFFFFF
##4D2FA61.009.242.279.24
#FFFFFF9.241.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AAA
Deuteranopia (green-blind)
#0044A4
Tritanopia (blue-blind)
#2A4E67
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4d2fa6;
/* rgb */ color: rgb(77, 47, 166);
/* oklch */ color: oklch(41.8% 0.179 287.6);
Tailwind
colors: {
  custom: {
    50: '#886ac1',
    500: '#4d2fa6',
    950: '#000000',
  },
}
SCSS
$custom: #4d2fa6;
$custom-light: #886ac1;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2fa6",
  "rgb": {
    "r": 77,
    "g": 47,
    "b": 166
  },
  "hsl": {
    "h": 255.126,
    "s": 55.869,
    "l": 41.765
  },
  "oklch": {
    "l": 0.41844,
    "c": 0.17895,
    "h": 287.6
  },
  "luminance": 0.06364
}

Semantic roles & 50–950 ramp

primary
#4D2FA6
secondary
#ACC170
accent
#DF49B9
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0712
muted
#7D7A81

Preview Lab

Preview with #4D2FA6

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

Preview Lab → · Contrast checker → · Palette generator →

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