#4C127D#4C127D

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

Color values

HEX#4C127D
RGBrgb(76, 18, 125)
HSLhsl(273, 75%, 28%)
HSVhsv(273, 86%, 49%)
CMYKcmyk(39.2%, 85.6%, 0%, 51%)
CIE-LABlab(21.76, 45.79, -48.01)
CIE-LCHlch(21.76, 66.35, 313.64°)
OKLaboklab(34.66% 0.088 -0.1371)
OKLCHoklch(34.66% 0.163 302.7)
XYZxyz(6.8976, 3.4498, 19.7005)
Luminance0.0345 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C127D #437D12
analogous
#16127D #4C127D #7D1278
triadic
#4C127D #7D4C12 #127D4C
tetradic
#4C127D #7D1612 #437D12 #12787D
square
#4C127D #7D1612 #437D12 #12787D
split-complementary
#4C127D #787D12 #127D16
monochromatic
#10041B #2B0A48 #4C127D #6D1AB2 #8C29E0

Accessibility & contrast

On white

12.43
#4C127D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C127D
12.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C127D#FFFFFF#000000##FFFFFF
##4C127D1.0012.431.6912.43
#FFFFFF12.431.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003380
Deuteranopia (green-blind)
#00347B
Tritanopia (blue-blind)
#413149
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #4c127d;
/* rgb */ color: rgb(76, 18, 125);
/* oklch */ color: oklch(34.7% 0.163 302.7);
Tailwind
colors: {
  custom: {
    50: '#8459a4',
    500: '#4c127d',
    950: '#000000',
  },
}
SCSS
$custom: #4c127d;
$custom-light: #8459a4;
$custom-dark: #000000;
JSON
{
  "hex": "#4c127d",
  "rgb": {
    "r": 76,
    "g": 18,
    "b": 125
  },
  "hsl": {
    "h": 272.523,
    "s": 74.825,
    "l": 28.039
  },
  "oklch": {
    "l": 0.34663,
    "c": 0.16296,
    "h": 302.7
  },
  "luminance": 0.0345
}

Semantic roles & 50–950 ramp

primary
#4C127D
secondary
#70B338
accent
#F1368C
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4C127D

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

Preview Lab → · Contrast checker → · Palette generator →

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