#4C107E#4C107E

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

Color values

HEX#4C107E
RGBrgb(76, 16, 126)
HSLhsl(273, 77%, 28%)
HSVhsv(273, 87%, 49%)
CMYKcmyk(39.7%, 87.3%, 0%, 50.6%)
CIE-LABlab(21.63, 46.70, -48.87)
CIE-LCHlch(21.63, 67.59, 313.70°)
OKLaboklab(34.6% 0.0891 -0.1396)
OKLCHoklch(34.6% 0.166 302.5)
XYZxyz(6.9308, 3.4134, 20.0283)
Luminance0.0341 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C107E #427E10
analogous
#15107E #4C107E #7E1079
triadic
#4C107E #7E4C10 #107E4C
tetradic
#4C107E #7E1510 #427E10 #10797E
square
#4C107E #7E1510 #427E10 #10797E
split-complementary
#4C107E #797E10 #107E15
monochromatic
#10031B #2B0948 #4C107E #6D17B4 #8D25E3

Accessibility & contrast

On white

12.48
#4C107E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C107E
12.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C107E#FFFFFF#000000##FFFFFF
##4C107E1.0012.481.6812.48
#FFFFFF12.481.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003381
Deuteranopia (green-blind)
#00337C
Tritanopia (blue-blind)
#413049
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #4c107e;
/* rgb */ color: rgb(76, 16, 126);
/* oklch */ color: oklch(34.6% 0.166 302.5);
Tailwind
colors: {
  custom: {
    50: '#8458a4',
    500: '#4c107e',
    950: '#000000',
  },
}
SCSS
$custom: #4c107e;
$custom-light: #8458a4;
$custom-dark: #000000;
JSON
{
  "hex": "#4c107e",
  "rgb": {
    "r": 76,
    "g": 16,
    "b": 126
  },
  "hsl": {
    "h": 272.727,
    "s": 77.465,
    "l": 27.843
  },
  "oklch": {
    "l": 0.346,
    "c": 0.1656,
    "h": 302.5
  },
  "luminance": 0.03413
}

Semantic roles & 50–950 ramp

primary
#4C107E
secondary
#6FB436
accent
#F4348B
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4C107E

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

Preview Lab → · Contrast checker → · Palette generator →

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