#4D1F9D#4D1F9D

#4D1F9D is a dark, vivid violet. Relative luminance 0.050; OKLCH L 39.1% C 0.185 H 292.0°. Best body text is #FFFFFF at 10.51:1 contrast (WCAG AA passes).

Color values

HEX#4D1F9D
RGBrgb(77, 31, 157)
HSLhsl(262, 67%, 37%)
HSVhsv(262, 80%, 62%)
CMYKcmyk(51%, 80.3%, 0%, 38.4%)
CIE-LABlab(26.71, 49.03, -59.81)
CIE-LCHlch(26.71, 77.34, 309.34°)
OKLaboklab(39.06% 0.0693 -0.1718)
OKLCHoklch(39.06% 0.185 292)
XYZxyz(9.6346, 4.9917, 32.3476)
Luminance0.0499 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1F9D #6F9D1F
analogous
#1F309D #4D1F9D #8C1F9D
triadic
#4D1F9D #9D4D1F #1F9D4D
tetradic
#4D1F9D #9D1F30 #6F9D1F #1F9D8C
square
#4D1F9D #9D1F30 #6F9D1F #1F9D8C
split-complementary
#4D1F9D #9D8C1F #309D1F
monochromatic
#1B0B37 #34156A #4D1F9D #6629D0 #8958DE

Accessibility & contrast

On white

10.51
#4D1F9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#4D1F9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D1F9D
10.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1F9D#FFFFFF#000000##FFFFFF
##4D1F9D1.0010.512.0010.51
#FFFFFF10.511.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041A0
Deuteranopia (green-blind)
#003D9B
Tritanopia (blue-blind)
#32435E
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #4d1f9d;
/* rgb */ color: rgb(77, 31, 157);
/* oklch */ color: oklch(39.1% 0.185 292.0);
Tailwind
colors: {
  custom: {
    50: '#8861bb',
    500: '#4d1f9d',
    950: '#000000',
  },
}
SCSS
$custom: #4d1f9d;
$custom-light: #8861bb;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1f9d",
  "rgb": {
    "r": 77,
    "g": 31,
    "b": 157
  },
  "hsl": {
    "h": 261.905,
    "s": 67.021,
    "l": 36.863
  },
  "oklch": {
    "l": 0.39056,
    "c": 0.18526,
    "h": 292
  },
  "luminance": 0.04992
}

Semantic roles & 50–950 ramp

primary
#4D1F9D
secondary
#9AC256
accent
#EA3EAB
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0C0512
muted
#7D7981

Preview Lab

Preview with #4D1F9D

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

Preview Lab → · Contrast checker → · Palette generator →

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