#4D1F81#4D1F81

#4D1F81 is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.5% C 0.154 H 300.1°. Best body text is #FFFFFF at 11.48:1 contrast (WCAG AA passes).

Color values

HEX#4D1F81
RGBrgb(77, 31, 129)
HSLhsl(268, 61%, 31%)
HSVhsv(268, 76%, 51%)
CMYKcmyk(40.3%, 76%, 0%, 49.4%)
CIE-LABlab(24.14, 41.57, -46.66)
CIE-LCHlch(24.14, 62.49, 311.70°)
OKLaboklab(36.46% 0.0772 -0.1332)
OKLCHoklch(36.46% 0.154 300.1)
XYZxyz(7.5120, 4.1427, 21.1685)
Luminance0.0414 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1F81 #53811F
analogous
#1F2281 #4D1F81 #7E1F81
triadic
#4D1F81 #814D1F #1F814D
tetradic
#4D1F81 #811F22 #53811F #1F817E
square
#4D1F81 #811F22 #53811F #1F817E
split-complementary
#4D1F81 #817E1F #22811F
monochromatic
#12071E #301350 #4D1F81 #6A2BB2 #8947D3

Accessibility & contrast

On white

11.48
#4D1F81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#4D1F81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D1F81
11.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1F81#FFFFFF#000000##FFFFFF
##4D1F811.0011.481.8311.48
#FFFFFF11.481.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003984
Deuteranopia (green-blind)
#00397F
Tritanopia (blue-blind)
#41384E
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4d1f81;
/* rgb */ color: rgb(77, 31, 129);
/* oklch */ color: oklch(36.5% 0.154 300.1);
Tailwind
colors: {
  custom: {
    50: '#845fa6',
    500: '#4d1f81',
    950: '#000000',
  },
}
SCSS
$custom: #4d1f81;
$custom-light: #845fa6;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1f81",
  "rgb": {
    "r": 77,
    "g": 31,
    "b": 129
  },
  "hsl": {
    "h": 268.163,
    "s": 61.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.36465,
    "c": 0.154,
    "h": 300.1
  },
  "luminance": 0.04143
}

Semantic roles & 50–950 ramp

primary
#4D1F81
secondary
#81B448
accent
#E44399
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4D1F81

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

Preview Lab → · Contrast checker → · Palette generator →

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