#4D107F#4D107F

#4D107F is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.8% C 0.167 H 302.8°. Best body text is #FFFFFF at 12.38:1 contrast (WCAG AA passes).

Color values

HEX#4D107F
RGBrgb(77, 16, 127)
HSLhsl(273, 78%, 28%)
HSVhsv(273, 87%, 50%)
CMYKcmyk(39.4%, 87.4%, 0%, 50.2%)
CIE-LABlab(21.87, 47.08, -49.09)
CIE-LCHlch(21.87, 68.02, 313.80°)
OKLaboklab(34.83% 0.0903 -0.1403)
OKLCHoklch(34.83% 0.167 302.8)
XYZxyz(7.0757, 3.4807, 20.3736)
Luminance0.0348 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D107F #427F10
analogous
#16107F #4D107F #7F1079
triadic
#4D107F #7F4D10 #107F4D
tetradic
#4D107F #7F1610 #427F10 #10797F
square
#4D107F #7F1610 #427F10 #10797F
split-complementary
#4D107F #797F10 #107F16
monochromatic
#10031B #2C0949 #4D107F #6E17B5 #8E26E4

Accessibility & contrast

On white

12.38
#4D107F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#4D107F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D107F
12.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D107F#FFFFFF#000000##FFFFFF
##4D107F1.0012.381.7012.38
#FFFFFF12.381.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003382
Deuteranopia (green-blind)
#00347D
Tritanopia (blue-blind)
#42314A
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #4d107f;
/* rgb */ color: rgb(77, 16, 127);
/* oklch */ color: oklch(34.8% 0.167 302.8);
Tailwind
colors: {
  custom: {
    50: '#8559a5',
    500: '#4d107f',
    950: '#000000',
  },
}
SCSS
$custom: #4d107f;
$custom-light: #8559a5;
$custom-dark: #000000;
JSON
{
  "hex": "#4d107f",
  "rgb": {
    "r": 77,
    "g": 16,
    "b": 127
  },
  "hsl": {
    "h": 272.973,
    "s": 77.622,
    "l": 28.039
  },
  "oklch": {
    "l": 0.3483,
    "c": 0.16678,
    "h": 302.8
  },
  "luminance": 0.03481
}

Semantic roles & 50–950 ramp

primary
#4D107F
secondary
#6FB536
accent
#F4348A
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #4D107F

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

Preview Lab → · Contrast checker → · Palette generator →

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