#4D1F6F#4D1F6F

#4D1F6F is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.0% C 0.134 H 307.1°. Best body text is #FFFFFF at 12.06:1 contrast (WCAG AA passes).

Color values

HEX#4D1F6F
RGBrgb(77, 31, 111)
HSLhsl(275, 56%, 28%)
HSVhsv(275, 72%, 44%)
CMYKcmyk(30.6%, 72.1%, 0%, 56.5%)
CIE-LABlab(22.67, 36.92, -37.56)
CIE-LCHlch(22.67, 52.67, 314.52°)
OKLaboklab(34.97% 0.0806 -0.1065)
OKLCHoklch(34.97% 0.134 307.1)
XYZxyz(6.4192, 3.7055, 15.4129)
Luminance0.0370 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1F6F #416F1F
analogous
#251F6F #4D1F6F #6F1F69
triadic
#4D1F6F #6F4D1F #1F6F4D
tetradic
#4D1F6F #6F251F #416F1F #1F696F
square
#4D1F6F #6F251F #416F1F #1F696F
split-complementary
#4D1F6F #696F1F #1F6F25
monochromatic
#110718 #2C123F #4D1F6F #6E2C9F #8F3FC9

Accessibility & contrast

On white

12.06
#4D1F6F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#4D1F6F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D1F6F
12.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1F6F#FFFFFF#000000##FFFFFF
##4D1F6F1.0012.061.7412.06
#FFFFFF12.061.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003571
Deuteranopia (green-blind)
#09366D
Tritanopia (blue-blind)
#473144
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #4d1f6f;
/* rgb */ color: rgb(77, 31, 111);
/* oklch */ color: oklch(35.0% 0.134 307.1);
Tailwind
colors: {
  custom: {
    50: '#825f99',
    500: '#4d1f6f',
    950: '#000000',
  },
}
SCSS
$custom: #4d1f6f;
$custom-light: #825f99;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1f6f",
  "rgb": {
    "r": 77,
    "g": 31,
    "b": 111
  },
  "hsl": {
    "h": 274.5,
    "s": 56.338,
    "l": 27.843
  },
  "oklch": {
    "l": 0.34965,
    "c": 0.13353,
    "h": 307.1
  },
  "luminance": 0.03705
}

Semantic roles & 50–950 ramp

primary
#4D1F6F
secondary
#6EA347
accent
#E04889
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B050E
muted
#7C797E

Preview Lab

Preview with #4D1F6F

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

Preview Lab → · Contrast checker → · Palette generator →

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