#4D127D#4D127D

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

Color values

HEX#4D127D
RGBrgb(77, 18, 125)
HSLhsl(273, 75%, 28%)
HSVhsv(273, 86%, 49%)
CMYKcmyk(38.4%, 85.6%, 0%, 51%)
CIE-LABlab(21.91, 45.95, -47.76)
CIE-LCHlch(21.91, 66.27, 313.89°)
OKLaboklab(34.8% 0.0896 -0.1364)
OKLCHoklch(34.8% 0.163 303.3)
XYZxyz(6.9777, 3.4911, 19.7043)
Luminance0.0349 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D127D #427D12
analogous
#17127D #4D127D #7D1277
triadic
#4D127D #7D4D12 #127D4D
tetradic
#4D127D #7D1712 #427D12 #12777D
square
#4D127D #7D1712 #427D12 #12777D
split-complementary
#4D127D #777D12 #127D17
monochromatic
#10041B #2C0A48 #4D127D #6E1AB2 #8E29E0

Accessibility & contrast

On white

12.37
#4D127D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D127D
12.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D127D#FFFFFF#000000##FFFFFF
##4D127D1.0012.371.7012.37
#FFFFFF12.371.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003380
Deuteranopia (green-blind)
#00347B
Tritanopia (blue-blind)
#433049
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #4d127d;
/* rgb */ color: rgb(77, 18, 125);
/* oklch */ color: oklch(34.8% 0.163 303.3);
Tailwind
colors: {
  custom: {
    50: '#8459a4',
    500: '#4d127d',
    950: '#000000',
  },
}
SCSS
$custom: #4d127d;
$custom-light: #8459a4;
$custom-dark: #000000;
JSON
{
  "hex": "#4d127d",
  "rgb": {
    "r": 77,
    "g": 18,
    "b": 125
  },
  "hsl": {
    "h": 273.084,
    "s": 74.825,
    "l": 28.039
  },
  "oklch": {
    "l": 0.34799,
    "c": 0.16315,
    "h": 303.3
  },
  "luminance": 0.03491
}

Semantic roles & 50–950 ramp

primary
#4D127D
secondary
#6FB338
accent
#F1368A
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #4D127D

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

Preview Lab → · Contrast checker → · Palette generator →

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