#4C127F#4C127F

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

Color values

HEX#4C127F
RGBrgb(76, 18, 127)
HSLhsl(272, 75%, 28%)
HSVhsv(272, 86%, 50%)
CMYKcmyk(40.2%, 85.8%, 0%, 50.2%)
CIE-LABlab(21.95, 46.27, -48.98)
CIE-LCHlch(21.95, 67.38, 313.38°)
OKLaboklab(34.85% 0.0873 -0.14)
OKLCHoklch(34.85% 0.165 302)
XYZxyz(7.0266, 3.5014, 20.3802)
Luminance0.0350 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C127F #457F12
analogous
#16127F #4C127F #7F127B
triadic
#4C127F #7F4C12 #127F4C
tetradic
#4C127F #7F1612 #457F12 #127B7F
square
#4C127F #7F1612 #457F12 #127B7F
split-complementary
#4C127F #7B7F12 #127F16
monochromatic
#10041B #2C0A49 #4C127F #6C1AB5 #8C2BE1

Accessibility & contrast

On white

12.35
#4C127F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C127F
12.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C127F#FFFFFF#000000##FFFFFF
##4C127F1.0012.351.7012.35
#FFFFFF12.351.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.351.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4c127f;
/* rgb */ color: rgb(76, 18, 127);
/* oklch */ color: oklch(34.8% 0.165 302.0);
Tailwind
colors: {
  custom: {
    50: '#8459a5',
    500: '#4c127f',
    950: '#000000',
  },
}
SCSS
$custom: #4c127f;
$custom-light: #8459a5;
$custom-dark: #000000;
JSON
{
  "hex": "#4c127f",
  "rgb": {
    "r": 76,
    "g": 18,
    "b": 127
  },
  "hsl": {
    "h": 271.927,
    "s": 75.172,
    "l": 28.431
  },
  "oklch": {
    "l": 0.3485,
    "c": 0.16497,
    "h": 302
  },
  "luminance": 0.03501
}

Semantic roles & 50–950 ramp

primary
#4C127F
secondary
#72B538
accent
#F2368E
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4C127F

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

Preview Lab → · Contrast checker → · Palette generator →

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