#4D127F#4D127F

#4D127F is a dark, vivid violet. Relative luminance 0.035; OKLCH L 35.0% C 0.165 H 302.6°. Best body text is #FFFFFF at 12.29:1 contrast (WCAG AA passes).

Color values

HEX#4D127F
RGBrgb(77, 18, 127)
HSLhsl(272, 75%, 28%)
HSVhsv(272, 86%, 50%)
CMYKcmyk(39.4%, 85.8%, 0%, 50.2%)
CIE-LABlab(22.10, 46.43, -48.73)
CIE-LCHlch(22.10, 67.30, 313.62°)
OKLaboklab(34.99% 0.0889 -0.1392)
OKLCHoklch(34.99% 0.165 302.6)
XYZxyz(7.1067, 3.5427, 20.3840)
Luminance0.0354 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D127F #447F12
analogous
#16127F #4D127F #7F127A
triadic
#4D127F #7F4D12 #127F4D
tetradic
#4D127F #7F1612 #447F12 #127A7F
square
#4D127F #7F1612 #447F12 #127A7F
split-complementary
#4D127F #7A7F12 #127F16
monochromatic
#10041B #2C0A49 #4D127F #6D1AB5 #8D2BE1

Accessibility & contrast

On white

12.29
#4D127F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#4D127F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D127F
12.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D127F#FFFFFF#000000##FFFFFF
##4D127F1.0012.291.7112.29
#FFFFFF12.291.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.291.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4d127f;
/* rgb */ color: rgb(77, 18, 127);
/* oklch */ color: oklch(35.0% 0.165 302.6);
Tailwind
colors: {
  custom: {
    50: '#8559a5',
    500: '#4d127f',
    950: '#000000',
  },
}
SCSS
$custom: #4d127f;
$custom-light: #8559a5;
$custom-dark: #000000;
JSON
{
  "hex": "#4d127f",
  "rgb": {
    "r": 77,
    "g": 18,
    "b": 127
  },
  "hsl": {
    "h": 272.477,
    "s": 75.172,
    "l": 28.431
  },
  "oklch": {
    "l": 0.34985,
    "c": 0.16516,
    "h": 302.6
  },
  "luminance": 0.03543
}

Semantic roles & 50–950 ramp

primary
#4D127F
secondary
#71B538
accent
#F2368C
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #4D127F

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

Preview Lab → · Contrast checker → · Palette generator →

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