#4C127A#4C127A

#4C127A is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.4% C 0.160 H 303.8°. Best body text is #FFFFFF at 12.54:1 contrast (WCAG AA passes).

Color values

HEX#4C127A
RGBrgb(76, 18, 122)
HSLhsl(273, 74%, 27%)
HSVhsv(273, 85%, 48%)
CMYKcmyk(37.7%, 85.2%, 0%, 52.2%)
CIE-LABlab(21.48, 45.06, -46.55)
CIE-LCHlch(21.48, 64.79, 314.07°)
OKLaboklab(34.39% 0.089 -0.1329)
OKLCHoklch(34.39% 0.16 303.8)
XYZxyz(6.7088, 3.3743, 18.7064)
Luminance0.0337 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C127A #407A12
analogous
#18127A #4C127A #7A1274
triadic
#4C127A #7A4C12 #127A4C
tetradic
#4C127A #7A1812 #407A12 #12747A
square
#4C127A #7A1812 #407A12 #12747A
split-complementary
#4C127A #747A12 #127A18
monochromatic
#11041B #2B0A45 #4C127A #6D1AAF #8E27DF

Accessibility & contrast

On white

12.54
#4C127A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#4C127A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C127A
12.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C127A#FFFFFF#000000##FFFFFF
##4C127A1.0012.541.6712.54
#FFFFFF12.541.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327D
Deuteranopia (green-blind)
#003378
Tritanopia (blue-blind)
#432F47
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #4c127a;
/* rgb */ color: rgb(76, 18, 122);
/* oklch */ color: oklch(34.4% 0.160 303.8);
Tailwind
colors: {
  custom: {
    50: '#8359a1',
    500: '#4c127a',
    950: '#000000',
  },
}
SCSS
$custom: #4c127a;
$custom-light: #8359a1;
$custom-dark: #000000;
JSON
{
  "hex": "#4c127a",
  "rgb": {
    "r": 76,
    "g": 18,
    "b": 122
  },
  "hsl": {
    "h": 273.462,
    "s": 74.286,
    "l": 27.451
  },
  "oklch": {
    "l": 0.34386,
    "c": 0.15993,
    "h": 303.8
  },
  "luminance": 0.03374
}

Semantic roles & 50–950 ramp

primary
#4C127A
secondary
#6DB038
accent
#F13789
background
#F8F5FA
surface
#F0E9F3
border
#CBC5CD
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4C127A

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

Preview Lab → · Contrast checker → · Palette generator →

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