#4D1F97#4D1F97

#4D1F97 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.5% C 0.179 H 293.5°. Best body text is #FFFFFF at 10.72:1 contrast (WCAG AA passes).

Color values

HEX#4D1F97
RGBrgb(77, 31, 151)
HSLhsl(263, 66%, 36%)
HSVhsv(263, 79%, 59%)
CMYKcmyk(49%, 79.5%, 0%, 40.8%)
CIE-LABlab(26.13, 47.42, -57.09)
CIE-LCHlch(26.13, 74.21, 309.72°)
OKLaboklab(38.48% 0.0712 -0.1638)
OKLCHoklch(38.48% 0.179 293.5)
XYZxyz(9.1349, 4.7918, 29.7158)
Luminance0.0479 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1F97 #69971F
analogous
#1F2D97 #4D1F97 #891F97
triadic
#4D1F97 #974D1F #1F974D
tetradic
#4D1F97 #971F2D #69971F #1F9789
square
#4D1F97 #971F2D #69971F #1F9789
split-complementary
#4D1F97 #97891F #2D971F
monochromatic
#190A31 #331564 #4D1F97 #6729CA #8854DC

Accessibility & contrast

On white

10.72
#4D1F97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#4D1F97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D1F97
10.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1F97#FFFFFF#000000##FFFFFF
##4D1F971.0010.721.9610.72
#FFFFFF10.721.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F9A
Deuteranopia (green-blind)
#003C95
Tritanopia (blue-blind)
#36415B
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #4d1f97;
/* rgb */ color: rgb(77, 31, 151);
/* oklch */ color: oklch(38.5% 0.179 293.5);
Tailwind
colors: {
  custom: {
    50: '#8761b7',
    500: '#4d1f97',
    950: '#000000',
  },
}
SCSS
$custom: #4d1f97;
$custom-light: #8761b7;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1f97",
  "rgb": {
    "r": 77,
    "g": 31,
    "b": 151
  },
  "hsl": {
    "h": 263,
    "s": 65.934,
    "l": 35.686
  },
  "oklch": {
    "l": 0.38479,
    "c": 0.17864,
    "h": 293.5
  },
  "luminance": 0.04792
}

Semantic roles & 50–950 ramp

primary
#4D1F97
secondary
#96BF52
accent
#E93FA8
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #4D1F97

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

Preview Lab → · Contrast checker → · Palette generator →

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