#4C107F#4C107F

#4C107F is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.7% C 0.167 H 302.2°. Best body text is #FFFFFF at 12.44:1 contrast (WCAG AA passes).

Color values

HEX#4C107F
RGBrgb(76, 16, 127)
HSLhsl(272, 78%, 28%)
HSVhsv(272, 87%, 50%)
CMYKcmyk(40.2%, 87.4%, 0%, 50.2%)
CIE-LABlab(21.72, 46.94, -49.34)
CIE-LCHlch(21.72, 68.10, 313.57°)
OKLaboklab(34.7% 0.0887 -0.141)
OKLCHoklch(34.7% 0.167 302.2)
XYZxyz(6.9956, 3.4394, 20.3699)
Luminance0.0344 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C107F #437F10
analogous
#14107F #4C107F #7F107A
triadic
#4C107F #7F4C10 #107F4C
tetradic
#4C107F #7F1410 #437F10 #107A7F
square
#4C107F #7F1410 #437F10 #107A7F
split-complementary
#4C107F #7A7F10 #107F14
monochromatic
#10031B #2B0949 #4C107F #6D17B5 #8C26E4

Accessibility & contrast

On white

12.44
#4C107F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C107F
12.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C107F#FFFFFF#000000##FFFFFF
##4C107F1.0012.441.6912.44
#FFFFFF12.441.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.441.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4c107f;
/* rgb */ color: rgb(76, 16, 127);
/* oklch */ color: oklch(34.7% 0.167 302.2);
Tailwind
colors: {
  custom: {
    50: '#8458a5',
    500: '#4c107f',
    950: '#000000',
  },
}
SCSS
$custom: #4c107f;
$custom-light: #8458a5;
$custom-dark: #000000;
JSON
{
  "hex": "#4c107f",
  "rgb": {
    "r": 76,
    "g": 16,
    "b": 127
  },
  "hsl": {
    "h": 272.432,
    "s": 77.622,
    "l": 28.039
  },
  "oklch": {
    "l": 0.34695,
    "c": 0.1666,
    "h": 302.2
  },
  "luminance": 0.03439
}

Semantic roles & 50–950 ramp

primary
#4C107F
secondary
#70B536
accent
#F4348C
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #4C107F

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

Preview Lab → · Contrast checker → · Palette generator →

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