#4C117C#4C117C

#4C117C is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.5% C 0.163 H 303.2°. Best body text is #FFFFFF at 12.51:1 contrast (WCAG AA passes).

Color values

HEX#4C117C
RGBrgb(76, 17, 124)
HSLhsl(273, 76%, 28%)
HSVhsv(273, 86%, 49%)
CMYKcmyk(38.7%, 86.3%, 0%, 51.4%)
CIE-LABlab(21.55, 45.89, -47.72)
CIE-LCHlch(21.55, 66.20, 313.88°)
OKLaboklab(34.49% 0.0891 -0.1363)
OKLCHoklch(34.49% 0.163 303.2)
XYZxyz(6.8182, 3.3926, 19.3605)
Luminance0.0339 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C117C #417C11
analogous
#16117C #4C117C #7C1177
triadic
#4C117C #7C4C11 #117C4C
tetradic
#4C117C #7C1611 #417C11 #11777C
square
#4C117C #7C1611 #417C11 #11777C
split-complementary
#4C117C #777C11 #117C16
monochromatic
#10041B #2B0A46 #4C117C #6D18B2 #8D26E1

Accessibility & contrast

On white

12.51
#4C117C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C117C
12.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C117C#FFFFFF#000000##FFFFFF
##4C117C1.0012.511.6812.51
#FFFFFF12.511.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.511.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4c117c;
/* rgb */ color: rgb(76, 17, 124);
/* oklch */ color: oklch(34.5% 0.163 303.2);
Tailwind
colors: {
  custom: {
    50: '#8459a3',
    500: '#4c117c',
    950: '#000000',
  },
}
SCSS
$custom: #4c117c;
$custom-light: #8459a3;
$custom-dark: #000000;
JSON
{
  "hex": "#4c117c",
  "rgb": {
    "r": 76,
    "g": 17,
    "b": 124
  },
  "hsl": {
    "h": 273.084,
    "s": 75.887,
    "l": 27.647
  },
  "oklch": {
    "l": 0.3449,
    "c": 0.1628,
    "h": 303.2
  },
  "luminance": 0.03393
}

Semantic roles & 50–950 ramp

primary
#4C117C
secondary
#6EB237
accent
#F2358A
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4C117C

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

Preview Lab → · Contrast checker → · Palette generator →

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