#4D1FA1#4D1FA1

#4D1FA1 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.4% C 0.190 H 291.0°. Best body text is #FFFFFF at 10.36:1 contrast (WCAG AA passes).

Color values

HEX#4D1FA1
RGBrgb(77, 31, 161)
HSLhsl(261, 68%, 38%)
HSVhsv(261, 81%, 63%)
CMYKcmyk(52.2%, 80.7%, 0%, 36.9%)
CIE-LABlab(27.10, 50.11, -61.60)
CIE-LCHlch(27.10, 79.41, 309.12°)
OKLaboklab(39.45% 0.068 -0.1771)
OKLCHoklch(39.45% 0.19 291)
XYZxyz(9.9817, 5.1305, 34.1757)
Luminance0.0513 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1FA1 #73A11F
analogous
#1F32A1 #4D1FA1 #8E1FA1
triadic
#4D1FA1 #A14D1F #1FA14D
tetradic
#4D1FA1 #A11F32 #73A11F #1FA18E
square
#4D1FA1 #A11F32 #73A11F #1FA18E
split-complementary
#4D1FA1 #A18E1F #32A11F
monochromatic
#1C0B3A #34156E #4D1FA1 #6629D4 #8A5BDF

Accessibility & contrast

On white

10.36
#4D1FA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#4D1FA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D1FA1
10.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1FA1#FFFFFF#000000##FFFFFF
##4D1FA11.0010.362.0310.36
#FFFFFF10.361.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A5
Deuteranopia (green-blind)
#003D9F
Tritanopia (blue-blind)
#2F4560
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4d1fa1;
/* rgb */ color: rgb(77, 31, 161);
/* oklch */ color: oklch(39.4% 0.190 291.0);
Tailwind
colors: {
  custom: {
    50: '#8861be',
    500: '#4d1fa1',
    950: '#000000',
  },
}
SCSS
$custom: #4d1fa1;
$custom-light: #8861be;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1fa1",
  "rgb": {
    "r": 77,
    "g": 31,
    "b": 161
  },
  "hsl": {
    "h": 261.231,
    "s": 67.708,
    "l": 37.647
  },
  "oklch": {
    "l": 0.39447,
    "c": 0.18966,
    "h": 291
  },
  "luminance": 0.05131
}

Semantic roles & 50–950 ramp

primary
#4D1FA1
secondary
#9EC458
accent
#EB3DAD
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0D0512
muted
#7D7A81

Preview Lab

Preview with #4D1FA1

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

Preview Lab → · Contrast checker → · Palette generator →

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