#4D127E#4D127E

#4D127E is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.9% C 0.164 H 302.9°. Best body text is #FFFFFF at 12.33:1 contrast (WCAG AA passes).

Color values

HEX#4D127E
RGBrgb(77, 18, 126)
HSLhsl(273, 75%, 28%)
HSVhsv(273, 86%, 49%)
CMYKcmyk(38.9%, 85.7%, 0%, 50.6%)
CIE-LABlab(22.00, 46.19, -48.24)
CIE-LCHlch(22.00, 66.79, 313.75°)
OKLaboklab(34.89% 0.0893 -0.1378)
OKLCHoklch(34.89% 0.164 302.9)
XYZxyz(7.0419, 3.5167, 20.0424)
Luminance0.0352 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D127E #437E12
analogous
#17127E #4D127E #7E1279
triadic
#4D127E #7E4D12 #127E4D
tetradic
#4D127E #7E1712 #437E12 #12797E
square
#4D127E #7E1712 #437E12 #12797E
split-complementary
#4D127E #797E12 #127E17
monochromatic
#10041B #2C0A48 #4D127E #6E1AB4 #8E2AE1

Accessibility & contrast

On white

12.33
#4D127E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D127E
12.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D127E#FFFFFF#000000##FFFFFF
##4D127E1.0012.331.7012.33
#FFFFFF12.331.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003481
Deuteranopia (green-blind)
#00347C
Tritanopia (blue-blind)
#43314A
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4d127e;
/* rgb */ color: rgb(77, 18, 126);
/* oklch */ color: oklch(34.9% 0.164 302.9);
Tailwind
colors: {
  custom: {
    50: '#8559a4',
    500: '#4d127e',
    950: '#000000',
  },
}
SCSS
$custom: #4d127e;
$custom-light: #8559a4;
$custom-dark: #000000;
JSON
{
  "hex": "#4d127e",
  "rgb": {
    "r": 77,
    "g": 18,
    "b": 126
  },
  "hsl": {
    "h": 272.778,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.34892,
    "c": 0.16416,
    "h": 302.9
  },
  "luminance": 0.03517
}

Semantic roles & 50–950 ramp

primary
#4D127E
secondary
#70B438
accent
#F2368B
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #4D127E

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

Preview Lab → · Contrast checker → · Palette generator →

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