#4D2FA5#4D2FA5

#4D2FA5 is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.8% C 0.178 H 287.7°. Best body text is #FFFFFF at 9.27:1 contrast (WCAG AA passes).

Color values

HEX#4D2FA5
RGBrgb(77, 47, 165)
HSLhsl(255, 56%, 42%)
HSVhsv(255, 72%, 65%)
CMYKcmyk(53.3%, 71.5%, 0%, 35.3%)
CIE-LABlab(30.22, 43.44, -58.91)
CIE-LCHlch(30.22, 73.19, 306.40°)
OKLaboklab(41.75% 0.0542 -0.1693)
OKLCHoklch(41.75% 0.178 287.7)
XYZxyz(10.8666, 6.3269, 36.2386)
Luminance0.0633 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2FA5 #87A52F
analogous
#2F4CA5 #4D2FA5 #882FA5
triadic
#4D2FA5 #A54D2F #2FA54D
tetradic
#4D2FA5 #A52F4C #87A52F #2FA588
square
#4D2FA5 #A52F4C #87A52F #2FA588
split-complementary
#4D2FA5 #A5882F #4CA52F
monochromatic
#211446 #372175 #4D2FA5 #6847CB #8F76D8

Accessibility & contrast

On white

9.27
#4D2FA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D2FA5
9.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2FA5#FFFFFF#000000##FFFFFF
##4D2FA51.009.272.279.27
#FFFFFF9.271.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA9
Deuteranopia (green-blind)
#0044A3
Tritanopia (blue-blind)
#2B4E67
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4d2fa5;
/* rgb */ color: rgb(77, 47, 165);
/* oklch */ color: oklch(41.8% 0.178 287.7);
Tailwind
colors: {
  custom: {
    50: '#886ac1',
    500: '#4d2fa5',
    950: '#000000',
  },
}
SCSS
$custom: #4d2fa5;
$custom-light: #886ac1;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2fa5",
  "rgb": {
    "r": 77,
    "g": 47,
    "b": 165
  },
  "hsl": {
    "h": 255.254,
    "s": 55.66,
    "l": 41.569
  },
  "oklch": {
    "l": 0.41753,
    "c": 0.17773,
    "h": 287.7
  },
  "luminance": 0.06327
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4D2FA5

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

Preview Lab → · Contrast checker → · Palette generator →

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