#4D1FA9#4D1FA9

#4D1FA9 is a dark, vivid violet. Relative luminance 0.054; OKLCH L 40.2% C 0.198 H 289.2°. Best body text is #FFFFFF at 10.07:1 contrast (WCAG AA passes).

Color values

HEX#4D1FA9
RGBrgb(77, 31, 169)
HSLhsl(260, 69%, 39%)
HSVhsv(260, 82%, 66%)
CMYKcmyk(54.4%, 81.7%, 0%, 33.7%)
CIE-LABlab(27.90, 52.26, -65.13)
CIE-LCHlch(27.90, 83.50, 308.74°)
OKLaboklab(40.24% 0.0653 -0.1874)
OKLCHoklch(40.24% 0.198 289.2)
XYZxyz(10.7099, 5.4218, 38.0106)
Luminance0.0542 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1FA9 #7BA91F
analogous
#1F36A9 #4D1FA9 #921FA9
triadic
#4D1FA9 #A94D1F #1FA94D
tetradic
#4D1FA9 #A91F36 #7BA91F #1FA992
square
#4D1FA9 #A91F36 #7BA91F #1FA992
split-complementary
#4D1FA9 #A9921F #36A91F
monochromatic
#1E0C42 #351675 #4D1FA9 #662DD8 #8C60E2

Accessibility & contrast

On white

10.07
#4D1FA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#4D1FA9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D1FA9
10.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1FA9#FFFFFF#000000##FFFFFF
##4D1FA91.0010.072.0810.07
#FFFFFF10.071.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044AD
Deuteranopia (green-blind)
#003EA7
Tritanopia (blue-blind)
#284865
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #4d1fa9;
/* rgb */ color: rgb(77, 31, 169);
/* oklch */ color: oklch(40.2% 0.198 289.2);
Tailwind
colors: {
  custom: {
    50: '#8a62c4',
    500: '#4d1fa9',
    950: '#000000',
  },
}
SCSS
$custom: #4d1fa9;
$custom-light: #8a62c4;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1fa9",
  "rgb": {
    "r": 77,
    "g": 31,
    "b": 169
  },
  "hsl": {
    "h": 260,
    "s": 69,
    "l": 39.216
  },
  "oklch": {
    "l": 0.40242,
    "c": 0.19841,
    "h": 289.2
  },
  "luminance": 0.05422
}

Semantic roles & 50–950 ramp

primary
#4D1FA9
secondary
#A3C75D
accent
#EC3CB1
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0513
muted
#7E7A82

Preview Lab

Preview with #4D1FA9

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

Preview Lab → · Contrast checker → · Palette generator →

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