#4D127C#4D127C

#4D127C is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.7% C 0.162 H 303.7°. Best body text is #FFFFFF at 12.40:1 contrast (WCAG AA passes).

Color values

HEX#4D127C
RGBrgb(77, 18, 124)
HSLhsl(273, 75%, 28%)
HSVhsv(273, 85%, 49%)
CMYKcmyk(37.9%, 85.5%, 0%, 51.4%)
CIE-LABlab(21.82, 45.71, -47.28)
CIE-LCHlch(21.82, 65.76, 314.03°)
OKLaboklab(34.71% 0.0899 -0.1349)
OKLCHoklch(34.71% 0.162 303.7)
XYZxyz(6.9141, 3.4656, 19.3696)
Luminance0.0347 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D127C #417C12
analogous
#18127C #4D127C #7C1276
triadic
#4D127C #7C4D12 #127C4D
tetradic
#4D127C #7C1812 #417C12 #12767C
square
#4D127C #7C1812 #417C12 #12767C
split-complementary
#4D127C #767C12 #127C18
monochromatic
#11041B #2C0A47 #4D127C #6E1AB1 #8F29E0

Accessibility & contrast

On white

12.40
#4D127C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#4D127C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D127C
12.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D127C#FFFFFF#000000##FFFFFF
##4D127C1.0012.401.6912.40
#FFFFFF12.401.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337F
Deuteranopia (green-blind)
#00347A
Tritanopia (blue-blind)
#433049
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #4d127c;
/* rgb */ color: rgb(77, 18, 124);
/* oklch */ color: oklch(34.7% 0.162 303.7);
Tailwind
colors: {
  custom: {
    50: '#8459a3',
    500: '#4d127c',
    950: '#000000',
  },
}
SCSS
$custom: #4d127c;
$custom-light: #8459a3;
$custom-dark: #000000;
JSON
{
  "hex": "#4d127c",
  "rgb": {
    "r": 77,
    "g": 18,
    "b": 124
  },
  "hsl": {
    "h": 273.396,
    "s": 74.648,
    "l": 27.843
  },
  "oklch": {
    "l": 0.34707,
    "c": 0.16216,
    "h": 303.7
  },
  "luminance": 0.03466
}

Semantic roles & 50–950 ramp

primary
#4D127C
secondary
#6EB238
accent
#F13789
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4D127C

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

Preview Lab → · Contrast checker → · Palette generator →

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