#4D2FA9#4D2FA9

#4D2FA9 is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.1% C 0.183 H 287.0°. Best body text is #FFFFFF at 9.15:1 contrast (WCAG AA passes).

Color values

HEX#4D2FA9
RGBrgb(77, 47, 169)
HSLhsl(255, 56%, 42%)
HSVhsv(255, 72%, 66%)
CMYKcmyk(54.4%, 72.2%, 0%, 33.7%)
CIE-LABlab(30.58, 44.62, -60.73)
CIE-LCHlch(30.58, 75.36, 306.31°)
OKLaboklab(42.12% 0.0534 -0.1746)
OKLCHoklch(42.12% 0.183 287)
XYZxyz(11.2364, 6.4748, 38.1861)
Luminance0.0648 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2FA9 #8BA92F
analogous
#2F4EA9 #4D2FA9 #8A2FA9
triadic
#4D2FA9 #A94D2F #2FA94D
tetradic
#4D2FA9 #A92F4E #8BA92F #2FA98A
square
#4D2FA9 #A92F4E #8BA92F #2FA98A
split-complementary
#4D2FA9 #A98A2F #4EA92F
monochromatic
#211449 #372279 #4D2FA9 #6949CC #9179DA

Accessibility & contrast

On white

9.15
#4D2FA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#4D2FA9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D2FA9
9.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2FA9#FFFFFF#000000##FFFFFF
##4D2FA91.009.152.309.15
#FFFFFF9.151.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BAD
Deuteranopia (green-blind)
#0045A7
Tritanopia (blue-blind)
#275069
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #4d2fa9;
/* rgb */ color: rgb(77, 47, 169);
/* oklch */ color: oklch(42.1% 0.183 287.0);
Tailwind
colors: {
  custom: {
    50: '#886ac4',
    500: '#4d2fa9',
    950: '#000000',
  },
}
SCSS
$custom: #4d2fa9;
$custom-light: #886ac4;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2fa9",
  "rgb": {
    "r": 77,
    "g": 47,
    "b": 169
  },
  "hsl": {
    "h": 254.754,
    "s": 56.481,
    "l": 42.353
  },
  "oklch": {
    "l": 0.42117,
    "c": 0.18259,
    "h": 287
  },
  "luminance": 0.06475
}

Semantic roles & 50–950 ramp

primary
#4D2FA9
secondary
#AEC272
accent
#E048BA
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0713
muted
#7D7A82

Preview Lab

Preview with #4D2FA9

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

Preview Lab → · Contrast checker → · Palette generator →

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