#4D1F7F#4D1F7F

#4D1F7F is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.3% C 0.152 H 300.8°. Best body text is #FFFFFF at 11.55:1 contrast (WCAG AA passes).

Color values

HEX#4D1F7F
RGBrgb(77, 31, 127)
HSLhsl(269, 61%, 31%)
HSVhsv(269, 76%, 50%)
CMYKcmyk(39.4%, 75.6%, 0%, 50.2%)
CIE-LABlab(23.97, 41.04, -45.67)
CIE-LCHlch(23.97, 61.41, 311.94°)
OKLaboklab(36.29% 0.0777 -0.1303)
OKLCHoklch(36.29% 0.152 300.8)
XYZxyz(7.3804, 4.0900, 20.4752)
Luminance0.0409 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1F7F #517F1F
analogous
#1F217F #4D1F7F #7D1F7F
triadic
#4D1F7F #7F4D1F #1F7F4D
tetradic
#4D1F7F #7F1F21 #517F1F #1F7F7D
square
#4D1F7F #7F1F21 #517F1F #1F7F7D
split-complementary
#4D1F7F #7F7D1F #217F1F
monochromatic
#11071D #2F134E #4D1F7F #6B2BB0 #8946D2

Accessibility & contrast

On white

11.55
#4D1F7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#4D1F7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D1F7F
11.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1F7F#FFFFFF#000000##FFFFFF
##4D1F7F1.0011.551.8211.55
#FFFFFF11.551.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003982
Deuteranopia (green-blind)
#00387D
Tritanopia (blue-blind)
#42374D
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4d1f7f;
/* rgb */ color: rgb(77, 31, 127);
/* oklch */ color: oklch(36.3% 0.152 300.8);
Tailwind
colors: {
  custom: {
    50: '#845fa5',
    500: '#4d1f7f',
    950: '#000000',
  },
}
SCSS
$custom: #4d1f7f;
$custom-light: #845fa5;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1f7f",
  "rgb": {
    "r": 77,
    "g": 31,
    "b": 127
  },
  "hsl": {
    "h": 268.75,
    "s": 60.759,
    "l": 30.98
  },
  "oklch": {
    "l": 0.36291,
    "c": 0.15173,
    "h": 300.8
  },
  "luminance": 0.0409
}

Semantic roles & 50–950 ramp

primary
#4D1F7F
secondary
#7FB248
accent
#E44497
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4D1F7F

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

Preview Lab → · Contrast checker → · Palette generator →

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