#4D2FA0#4D2FA0

#4D2FA0 is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.3% C 0.172 H 288.7°. Best body text is #FFFFFF at 9.42:1 contrast (WCAG AA passes).

Color values

HEX#4D2FA0
RGBrgb(77, 47, 160)
HSLhsl(256, 55%, 41%)
HSVhsv(256, 71%, 63%)
CMYKcmyk(51.9%, 70.6%, 0%, 37.3%)
CIE-LABlab(29.78, 41.96, -56.60)
CIE-LCHlch(29.78, 70.46, 306.55°)
OKLaboklab(41.31% 0.0552 -0.1625)
OKLCHoklch(41.31% 0.172 288.7)
XYZxyz(10.4204, 6.1484, 33.8886)
Luminance0.0615 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2FA0 #82A02F
analogous
#2F4AA0 #4D2FA0 #852FA0
triadic
#4D2FA0 #A04D2F #2FA04D
tetradic
#4D2FA0 #A02F4A #82A02F #2FA085
square
#4D2FA0 #A02F4A #82A02F #2FA085
split-complementary
#4D2FA0 #A0852F #4AA02F
monochromatic
#1F1341 #362171 #4D2FA0 #6744C8 #8E73D6

Accessibility & contrast

On white

9.42
#4D2FA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#4D2FA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D2FA0
9.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2FA0#FFFFFF#000000##FFFFFF
##4D2FA01.009.422.239.42
#FFFFFF9.421.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A3
Deuteranopia (green-blind)
#00439E
Tritanopia (blue-blind)
#2F4C64
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4d2fa0;
/* rgb */ color: rgb(77, 47, 160);
/* oklch */ color: oklch(41.3% 0.172 288.7);
Tailwind
colors: {
  custom: {
    50: '#876abd',
    500: '#4d2fa0',
    950: '#000000',
  },
}
SCSS
$custom: #4d2fa0;
$custom-light: #876abd;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2fa0",
  "rgb": {
    "r": 77,
    "g": 47,
    "b": 160
  },
  "hsl": {
    "h": 255.929,
    "s": 54.589,
    "l": 40.588
  },
  "oklch": {
    "l": 0.41305,
    "c": 0.17161,
    "h": 288.7
  },
  "luminance": 0.06149
}

Semantic roles & 50–950 ramp

primary
#4D2FA0
secondary
#A8BE6D
accent
#DE4AB7
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0712
muted
#7D7A81

Preview Lab

Preview with #4D2FA0

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

Preview Lab → · Contrast checker → · Palette generator →

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