#4D1F71#4D1F71

#4D1F71 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.1% C 0.136 H 306.2°. Best body text is #FFFFFF at 12.00:1 contrast (WCAG AA passes).

Color values

HEX#4D1F71
RGBrgb(77, 31, 113)
HSLhsl(274, 57%, 28%)
HSVhsv(274, 73%, 44%)
CMYKcmyk(31.9%, 72.6%, 0%, 55.7%)
CIE-LABlab(22.83, 37.43, -38.59)
CIE-LCHlch(22.83, 53.76, 314.12°)
OKLaboklab(35.13% 0.0803 -0.1095)
OKLCHoklch(35.13% 0.136 306.2)
XYZxyz(6.5305, 3.7501, 15.9994)
Luminance0.0375 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1F71 #43711F
analogous
#241F71 #4D1F71 #711F6C
triadic
#4D1F71 #714D1F #1F714D
tetradic
#4D1F71 #71241F #43711F #1F6C71
square
#4D1F71 #71241F #43711F #1F6C71
split-complementary
#4D1F71 #6C711F #1F7124
monochromatic
#100718 #2C1241 #4D1F71 #6E2CA1 #8E40CB

Accessibility & contrast

On white

12.00
#4D1F71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#4D1F71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D1F71
12.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1F71#FFFFFF#000000##FFFFFF
##4D1F711.0012.001.7512.00
#FFFFFF12.001.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003573
Deuteranopia (green-blind)
#05376F
Tritanopia (blue-blind)
#473245
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #4d1f71;
/* rgb */ color: rgb(77, 31, 113);
/* oklch */ color: oklch(35.1% 0.136 306.2);
Tailwind
colors: {
  custom: {
    50: '#825f9a',
    500: '#4d1f71',
    950: '#000000',
  },
}
SCSS
$custom: #4d1f71;
$custom-light: #825f9a;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1f71",
  "rgb": {
    "r": 77,
    "g": 31,
    "b": 113
  },
  "hsl": {
    "h": 273.659,
    "s": 56.944,
    "l": 28.235
  },
  "oklch": {
    "l": 0.35125,
    "c": 0.1358,
    "h": 306.2
  },
  "luminance": 0.0375
}

Semantic roles & 50–950 ramp

primary
#4D1F71
secondary
#70A547
accent
#E0488B
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B050E
muted
#7C797E

Preview Lab

Preview with #4D1F71

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

Preview Lab → · Contrast checker → · Palette generator →

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