#4D1FB4#4D1FB4

#4D1FB4 is a dark, highly saturated violet. Relative luminance 0.059; OKLCH L 41.4% C 0.210 H 287.0°. Best body text is #FFFFFF at 9.67:1 contrast (WCAG AA passes).

Color values

HEX#4D1FB4
RGBrgb(77, 31, 180)
HSLhsl(259, 71%, 41%)
HSVhsv(259, 83%, 71%)
CMYKcmyk(57.2%, 82.8%, 0%, 29.4%)
CIE-LABlab(29.04, 55.21, -69.85)
CIE-LCHlch(29.04, 89.04, 308.32°)
OKLaboklab(41.36% 0.0615 -0.2012)
OKLCHoklch(41.36% 0.21 287)
XYZxyz(11.7863, 5.8524, 43.6797)
Luminance0.0585 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1FB4 #86B41F
analogous
#1F3CB4 #4D1FB4 #981FB4
triadic
#4D1FB4 #B44D1F #1FB44D
tetradic
#4D1FB4 #B41F3C #86B41F #1FB498
square
#4D1FB4 #B41F3C #86B41F #1FB498
split-complementary
#4D1FB4 #B4981F #3CB41F
monochromatic
#200D4C #371680 #4D1FB4 #6834DC #8F68E5

Accessibility & contrast

On white

9.67
#4D1FB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#4D1FB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D1FB4
9.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1FB4#FFFFFF#000000##FFFFFF
##4D1FB41.009.672.179.67
#FFFFFF9.671.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048B8
Deuteranopia (green-blind)
#0040B1
Tritanopia (blue-blind)
#1A4D6C
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4d1fb4;
/* rgb */ color: rgb(77, 31, 180);
/* oklch */ color: oklch(41.4% 0.210 287.0);
Tailwind
colors: {
  custom: {
    50: '#8b62cc',
    500: '#4d1fb4',
    950: '#000000',
  },
}
SCSS
$custom: #4d1fb4;
$custom-light: #8b62cc;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1fb4",
  "rgb": {
    "r": 77,
    "g": 31,
    "b": 180
  },
  "hsl": {
    "h": 258.523,
    "s": 70.616,
    "l": 41.373
  },
  "oklch": {
    "l": 0.41361,
    "c": 0.21034,
    "h": 287
  },
  "luminance": 0.05853
}

Semantic roles & 50–950 ramp

primary
#4D1FB4
secondary
#ABCB64
accent
#ED3AB6
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0614
muted
#7E7A82

Preview Lab

Preview with #4D1FB4

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

Preview Lab → · Contrast checker → · Palette generator →

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