#4D2FA4#4D2FA4

#4D2FA4 is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.7% C 0.177 H 287.9°. Best body text is #FFFFFF at 9.30:1 contrast (WCAG AA passes).

Color values

HEX#4D2FA4
RGBrgb(77, 47, 164)
HSLhsl(255, 55%, 41%)
HSVhsv(255, 71%, 64%)
CMYKcmyk(53%, 71.3%, 0%, 35.7%)
CIE-LABlab(30.13, 43.14, -58.45)
CIE-LCHlch(30.13, 72.65, 306.43°)
OKLaboklab(41.66% 0.0544 -0.1679)
OKLCHoklch(41.66% 0.177 287.9)
XYZxyz(10.7760, 6.2906, 35.7612)
Luminance0.0629 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2FA4 #86A42F
analogous
#2F4CA4 #4D2FA4 #882FA4
triadic
#4D2FA4 #A44D2F #2FA44D
tetradic
#4D2FA4 #A42F4C #86A42F #2FA488
square
#4D2FA4 #A42F4C #86A42F #2FA488
split-complementary
#4D2FA4 #A4882F #4CA42F
monochromatic
#201445 #372174 #4D2FA4 #6846CA #8F76D8

Accessibility & contrast

On white

9.30
#4D2FA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#4D2FA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D2FA4
9.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2FA4#FFFFFF#000000##FFFFFF
##4D2FA41.009.302.269.30
#FFFFFF9.301.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA7
Deuteranopia (green-blind)
#0044A2
Tritanopia (blue-blind)
#2B4E66
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4d2fa4;
/* rgb */ color: rgb(77, 47, 164);
/* oklch */ color: oklch(41.7% 0.177 287.9);
Tailwind
colors: {
  custom: {
    50: '#886ac0',
    500: '#4d2fa4',
    950: '#000000',
  },
}
SCSS
$custom: #4d2fa4;
$custom-light: #886ac0;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2fa4",
  "rgb": {
    "r": 77,
    "g": 47,
    "b": 164
  },
  "hsl": {
    "h": 255.385,
    "s": 55.45,
    "l": 41.373
  },
  "oklch": {
    "l": 0.41663,
    "c": 0.17651,
    "h": 287.9
  },
  "luminance": 0.06291
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4D2FA4

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

Preview Lab → · Contrast checker → · Palette generator →

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