#4D1FA5#4D1FA5

#4D1FA5 is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.8% C 0.194 H 290.1°. Best body text is #FFFFFF at 10.22:1 contrast (WCAG AA passes).

Color values

HEX#4D1FA5
RGBrgb(77, 31, 165)
HSLhsl(261, 68%, 38%)
HSVhsv(261, 81%, 65%)
CMYKcmyk(53.3%, 81.2%, 0%, 35.3%)
CIE-LABlab(27.50, 51.18, -63.37)
CIE-LCHlch(27.50, 81.46, 308.93°)
OKLaboklab(39.84% 0.0667 -0.1822)
OKLCHoklch(39.84% 0.194 290.1)
XYZxyz(10.3401, 5.2739, 36.0631)
Luminance0.0527 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1FA5 #77A51F
analogous
#1F34A5 #4D1FA5 #901FA5
triadic
#4D1FA5 #A54D1F #1FA54D
tetradic
#4D1FA5 #A51F34 #77A51F #1FA590
square
#4D1FA5 #A51F34 #77A51F #1FA590
split-complementary
#4D1FA5 #A5901F #34A51F
monochromatic
#1D0C3E #351571 #4D1FA5 #662AD7 #8B5EE1

Accessibility & contrast

On white

10.22
#4D1FA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#4D1FA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D1FA5
10.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1FA5#FFFFFF#000000##FFFFFF
##4D1FA51.0010.222.0510.22
#FFFFFF10.221.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A9
Deuteranopia (green-blind)
#003EA3
Tritanopia (blue-blind)
#2C4763
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4d1fa5;
/* rgb */ color: rgb(77, 31, 165);
/* oklch */ color: oklch(39.8% 0.194 290.1);
Tailwind
colors: {
  custom: {
    50: '#8961c1',
    500: '#4d1fa5',
    950: '#000000',
  },
}
SCSS
$custom: #4d1fa5;
$custom-light: #8961c1;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1fa5",
  "rgb": {
    "r": 77,
    "g": 31,
    "b": 165
  },
  "hsl": {
    "h": 260.597,
    "s": 68.367,
    "l": 38.431
  },
  "oklch": {
    "l": 0.39843,
    "c": 0.19404,
    "h": 290.1
  },
  "luminance": 0.05274
}

Semantic roles & 50–950 ramp

primary
#4D1FA5
secondary
#A1C55B
accent
#EB3DAF
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0512
muted
#7E7A81

Preview Lab

Preview with #4D1FA5

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

Preview Lab → · Contrast checker → · Palette generator →

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