#4D2FA3#4D2FA3

#4D2FA3 is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.6% C 0.175 H 288.1°. Best body text is #FFFFFF at 9.33:1 contrast (WCAG AA passes).

Color values

HEX#4D2FA3
RGBrgb(77, 47, 163)
HSLhsl(256, 55%, 41%)
HSVhsv(256, 71%, 64%)
CMYKcmyk(52.8%, 71.2%, 0%, 36.1%)
CIE-LABlab(30.05, 42.85, -57.99)
CIE-LCHlch(30.05, 72.10, 306.46°)
OKLaboklab(41.57% 0.0546 -0.1666)
OKLCHoklch(41.57% 0.175 288.1)
XYZxyz(10.6860, 6.2546, 35.2874)
Luminance0.0625 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2FA3 #85A32F
analogous
#2F4BA3 #4D2FA3 #872FA3
triadic
#4D2FA3 #A34D2F #2FA34D
tetradic
#4D2FA3 #A32F4B #85A32F #2FA387
square
#4D2FA3 #A32F4B #85A32F #2FA387
split-complementary
#4D2FA3 #A3872F #4BA32F
monochromatic
#201444 #372173 #4D2FA3 #6846CA #8F75D7

Accessibility & contrast

On white

9.33
#4D2FA3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#4D2FA3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D2FA3
9.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2FA3#FFFFFF#000000##FFFFFF
##4D2FA31.009.332.259.33
#FFFFFF9.331.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A6
Deuteranopia (green-blind)
#0044A1
Tritanopia (blue-blind)
#2C4D65
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4d2fa3;
/* rgb */ color: rgb(77, 47, 163);
/* oklch */ color: oklch(41.6% 0.175 288.1);
Tailwind
colors: {
  custom: {
    50: '#886abf',
    500: '#4d2fa3',
    950: '#000000',
  },
}
SCSS
$custom: #4d2fa3;
$custom-light: #886abf;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2fa3",
  "rgb": {
    "r": 77,
    "g": 47,
    "b": 163
  },
  "hsl": {
    "h": 255.517,
    "s": 55.238,
    "l": 41.176
  },
  "oklch": {
    "l": 0.41573,
    "c": 0.17529,
    "h": 288.1
  },
  "luminance": 0.06255
}

Semantic roles & 50–950 ramp

primary
#4D2FA3
secondary
#AABF6F
accent
#DF49B8
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0712
muted
#7D7A81

Preview Lab

Preview with #4D2FA3

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

Preview Lab → · Contrast checker → · Palette generator →

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