#4C127C#4C127C

#4C127C is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.6% C 0.162 H 303.1°. Best body text is #FFFFFF at 12.46:1 contrast (WCAG AA passes).

Color values

HEX#4C127C
RGBrgb(76, 18, 124)
HSLhsl(273, 75%, 28%)
HSVhsv(273, 85%, 49%)
CMYKcmyk(38.7%, 85.5%, 0%, 51.4%)
CIE-LABlab(21.67, 45.55, -47.53)
CIE-LCHlch(21.67, 65.83, 313.78°)
OKLaboklab(34.57% 0.0884 -0.1357)
OKLCHoklch(34.57% 0.162 303.1)
XYZxyz(6.8340, 3.4243, 19.3658)
Luminance0.0342 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C127C #427C12
analogous
#17127C #4C127C #7C1277
triadic
#4C127C #7C4C12 #127C4C
tetradic
#4C127C #7C1712 #427C12 #12777C
square
#4C127C #7C1712 #427C12 #12777C
split-complementary
#4C127C #777C12 #127C17
monochromatic
#10041B #2B0A47 #4C127C #6D1AB1 #8D29E0

Accessibility & contrast

On white

12.46
#4C127C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#4C127C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C127C
12.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C127C#FFFFFF#000000##FFFFFF
##4C127C1.0012.461.6812.46
#FFFFFF12.461.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.461.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4c127c;
/* rgb */ color: rgb(76, 18, 124);
/* oklch */ color: oklch(34.6% 0.162 303.1);
Tailwind
colors: {
  custom: {
    50: '#8459a3',
    500: '#4c127c',
    950: '#000000',
  },
}
SCSS
$custom: #4c127c;
$custom-light: #8459a3;
$custom-dark: #000000;
JSON
{
  "hex": "#4c127c",
  "rgb": {
    "r": 76,
    "g": 18,
    "b": 124
  },
  "hsl": {
    "h": 272.83,
    "s": 74.648,
    "l": 27.843
  },
  "oklch": {
    "l": 0.3457,
    "c": 0.16195,
    "h": 303.1
  },
  "luminance": 0.03424
}

Semantic roles & 50–950 ramp

primary
#4C127C
secondary
#6FB238
accent
#F1378B
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4C127C

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

Preview Lab → · Contrast checker → · Palette generator →

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