#4D1F87#4D1F87

#4D1F87 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.0% C 0.161 H 298.1°. Best body text is #FFFFFF at 11.28:1 contrast (WCAG AA passes).

Color values

HEX#4D1F87
RGBrgb(77, 31, 135)
HSLhsl(267, 63%, 33%)
HSVhsv(267, 77%, 53%)
CMYKcmyk(43%, 77%, 0%, 47.1%)
CIE-LABlab(24.66, 43.15, -49.57)
CIE-LCHlch(24.66, 65.72, 311.04°)
OKLaboklab(37% 0.0758 -0.1418)
OKLCHoklch(37% 0.161 298.1)
XYZxyz(7.9226, 4.3069, 23.3309)
Luminance0.0431 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1F87 #59871F
analogous
#1F2587 #4D1F87 #811F87
triadic
#4D1F87 #874D1F #1F874D
tetradic
#4D1F87 #871F25 #59871F #1F8781
square
#4D1F87 #871F25 #59871F #1F8781
split-complementary
#4D1F87 #87811F #25871F
monochromatic
#140823 #311455 #4D1F87 #692AB9 #884BD6

Accessibility & contrast

On white

11.28
#4D1F87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#4D1F87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D1F87
11.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1F87#FFFFFF#000000##FFFFFF
##4D1F871.0011.281.8611.28
#FFFFFF11.281.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8A
Deuteranopia (green-blind)
#003985
Tritanopia (blue-blind)
#3E3A52
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #4d1f87;
/* rgb */ color: rgb(77, 31, 135);
/* oklch */ color: oklch(37.0% 0.161 298.1);
Tailwind
colors: {
  custom: {
    50: '#8560ab',
    500: '#4d1f87',
    950: '#000000',
  },
}
SCSS
$custom: #4d1f87;
$custom-light: #8560ab;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1f87",
  "rgb": {
    "r": 77,
    "g": 31,
    "b": 135
  },
  "hsl": {
    "h": 266.538,
    "s": 62.651,
    "l": 32.549
  },
  "oklch": {
    "l": 0.36997,
    "c": 0.16077,
    "h": 298.1
  },
  "luminance": 0.04307
}

Semantic roles & 50–950 ramp

primary
#4D1F87
secondary
#87B84A
accent
#E6429D
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4D1F87

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

Preview Lab → · Contrast checker → · Palette generator →

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