#4D1F72#4D1F72

#4D1F72 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.2% C 0.137 H 305.8°. Best body text is #FFFFFF at 11.97:1 contrast (WCAG AA passes).

Color values

HEX#4D1F72
RGBrgb(77, 31, 114)
HSLhsl(273, 57%, 28%)
HSVhsv(273, 73%, 45%)
CMYKcmyk(32.5%, 72.8%, 0%, 55.3%)
CIE-LABlab(22.91, 37.68, -39.11)
CIE-LCHlch(22.91, 54.31, 313.94°)
OKLaboklab(35.21% 0.0802 -0.111)
OKLCHoklch(35.21% 0.137 305.8)
XYZxyz(6.5872, 3.7727, 16.2975)
Luminance0.0377 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1F72 #44721F
analogous
#231F72 #4D1F72 #721F6D
triadic
#4D1F72 #724D1F #1F724D
tetradic
#4D1F72 #72231F #44721F #1F6D72
square
#4D1F72 #72231F #44721F #1F6D72
split-complementary
#4D1F72 #6D721F #1F7223
monochromatic
#100718 #2C1242 #4D1F72 #6D2CA2 #8D40CB

Accessibility & contrast

On white

11.97
#4D1F72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D1F72
11.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1F72#FFFFFF#000000##FFFFFF
##4D1F721.0011.971.7511.97
#FFFFFF11.971.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003574
Deuteranopia (green-blind)
#023770
Tritanopia (blue-blind)
#463246
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #4d1f72;
/* rgb */ color: rgb(77, 31, 114);
/* oklch */ color: oklch(35.2% 0.137 305.8);
Tailwind
colors: {
  custom: {
    50: '#825f9b',
    500: '#4d1f72',
    950: '#000000',
  },
}
SCSS
$custom: #4d1f72;
$custom-light: #825f9b;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1f72",
  "rgb": {
    "r": 77,
    "g": 31,
    "b": 114
  },
  "hsl": {
    "h": 273.253,
    "s": 57.241,
    "l": 28.431
  },
  "oklch": {
    "l": 0.35205,
    "c": 0.13694,
    "h": 305.8
  },
  "luminance": 0.03773
}

Semantic roles & 50–950 ramp

primary
#4D1F72
secondary
#71A647
accent
#E0478C
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B050E
muted
#7C797E

Preview Lab

Preview with #4D1F72

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

Preview Lab → · Contrast checker → · Palette generator →

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