#4D1F96#4D1F96

#4D1F96 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.4% C 0.178 H 293.8°. Best body text is #FFFFFF at 10.76:1 contrast (WCAG AA passes).

Color values

HEX#4D1F96
RGBrgb(77, 31, 150)
HSLhsl(263, 66%, 35%)
HSVhsv(263, 79%, 59%)
CMYKcmyk(48.7%, 79.3%, 0%, 41.2%)
CIE-LABlab(26.04, 47.15, -56.63)
CIE-LCHlch(26.04, 73.69, 309.78°)
OKLaboklab(38.38% 0.0715 -0.1625)
OKLCHoklch(38.38% 0.178 293.8)
XYZxyz(9.0541, 4.7595, 29.2899)
Luminance0.0476 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1F96 #68961F
analogous
#1F2D96 #4D1F96 #881F96
triadic
#4D1F96 #964D1F #1F964D
tetradic
#4D1F96 #961F2D #68961F #1F9688
square
#4D1F96 #961F2D #68961F #1F9688
split-complementary
#4D1F96 #96881F #2D961F
monochromatic
#190A31 #331563 #4D1F96 #6729C9 #8854DC

Accessibility & contrast

On white

10.76
#4D1F96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#4D1F96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D1F96
10.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1F96#FFFFFF#000000##FFFFFF
##4D1F961.0010.761.9510.76
#FFFFFF10.761.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F99
Deuteranopia (green-blind)
#003C94
Tritanopia (blue-blind)
#37405A
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #4d1f96;
/* rgb */ color: rgb(77, 31, 150);
/* oklch */ color: oklch(38.4% 0.178 293.8);
Tailwind
colors: {
  custom: {
    50: '#8761b6',
    500: '#4d1f96',
    950: '#000000',
  },
}
SCSS
$custom: #4d1f96;
$custom-light: #8761b6;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1f96",
  "rgb": {
    "r": 77,
    "g": 31,
    "b": 150
  },
  "hsl": {
    "h": 263.193,
    "s": 65.746,
    "l": 35.49
  },
  "oklch": {
    "l": 0.38383,
    "c": 0.17752,
    "h": 293.8
  },
  "luminance": 0.0476
}

Semantic roles & 50–950 ramp

primary
#4D1F96
secondary
#95BF52
accent
#E93FA7
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #4D1F96

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

Preview Lab → · Contrast checker → · Palette generator →

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