#4D1F85#4D1F85

#4D1F85 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 36.8% C 0.159 H 298.8°. Best body text is #FFFFFF at 11.35:1 contrast (WCAG AA passes).

Color values

HEX#4D1F85
RGBrgb(77, 31, 133)
HSLhsl(267, 62%, 32%)
HSVhsv(267, 77%, 52%)
CMYKcmyk(42.1%, 76.7%, 0%, 47.8%)
CIE-LABlab(24.48, 42.62, -48.61)
CIE-LCHlch(24.48, 64.65, 311.24°)
OKLaboklab(36.82% 0.0763 -0.139)
OKLCHoklch(36.82% 0.159 298.8)
XYZxyz(7.7831, 4.2511, 22.5962)
Luminance0.0425 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1F85 #57851F
analogous
#1F2485 #4D1F85 #801F85
triadic
#4D1F85 #854D1F #1F854D
tetradic
#4D1F85 #851F24 #57851F #1F8580
square
#4D1F85 #851F24 #57851F #1F8580
split-complementary
#4D1F85 #85801F #24851F
monochromatic
#140822 #301353 #4D1F85 #6A2BB7 #884AD5

Accessibility & contrast

On white

11.35
#4D1F85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#4D1F85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D1F85
11.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1F85#FFFFFF#000000##FFFFFF
##4D1F851.0011.351.8511.35
#FFFFFF11.351.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A88
Deuteranopia (green-blind)
#003983
Tritanopia (blue-blind)
#3F3950
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #4d1f85;
/* rgb */ color: rgb(77, 31, 133);
/* oklch */ color: oklch(36.8% 0.159 298.8);
Tailwind
colors: {
  custom: {
    50: '#8560a9',
    500: '#4d1f85',
    950: '#000000',
  },
}
SCSS
$custom: #4d1f85;
$custom-light: #8560a9;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1f85",
  "rgb": {
    "r": 77,
    "g": 31,
    "b": 133
  },
  "hsl": {
    "h": 267.059,
    "s": 62.195,
    "l": 32.157
  },
  "oklch": {
    "l": 0.36818,
    "c": 0.15852,
    "h": 298.8
  },
  "luminance": 0.04251
}

Semantic roles & 50–950 ramp

primary
#4D1F85
secondary
#85B749
accent
#E5439C
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4D1F85

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

Preview Lab → · Contrast checker → · Palette generator →

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