#4C1276#4C1276

#4C1276 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.0% C 0.156 H 305.4°. Best body text is #FFFFFF at 12.69:1 contrast (WCAG AA passes).

Color values

HEX#4C1276
RGBrgb(76, 18, 118)
HSLhsl(275, 74%, 27%)
HSVhsv(275, 85%, 46%)
CMYKcmyk(35.6%, 84.7%, 0%, 53.7%)
CIE-LABlab(21.12, 44.11, -44.59)
CIE-LCHlch(21.12, 62.72, 314.69°)
OKLaboklab(34.02% 0.0903 -0.1271)
OKLCHoklch(34.02% 0.156 305.4)
XYZxyz(6.4661, 3.2772, 17.4279)
Luminance0.0328 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1276 #3C7612
analogous
#1A1276 #4C1276 #76126E
triadic
#4C1276 #764C12 #12764C
tetradic
#4C1276 #761A12 #3C7612 #126E76
square
#4C1276 #761A12 #3C7612 #126E76
split-complementary
#4C1276 #6E7612 #12761A
monochromatic
#11041B #2A0A41 #4C1276 #6E1AAB #9025DE

Accessibility & contrast

On white

12.69
#4C1276 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#4C1276 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C1276
12.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1276#FFFFFF#000000##FFFFFF
##4C12761.0012.691.6612.69
#FFFFFF12.691.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003179
Deuteranopia (green-blind)
#003374
Tritanopia (blue-blind)
#442D45
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #4c1276;
/* rgb */ color: rgb(76, 18, 118);
/* oklch */ color: oklch(34.0% 0.156 305.4);
Tailwind
colors: {
  custom: {
    50: '#83599e',
    500: '#4c1276',
    950: '#000000',
  },
}
SCSS
$custom: #4c1276;
$custom-light: #83599e;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1276",
  "rgb": {
    "r": 76,
    "g": 18,
    "b": 118
  },
  "hsl": {
    "h": 274.8,
    "s": 73.529,
    "l": 26.667
  },
  "oklch": {
    "l": 0.34022,
    "c": 0.1559,
    "h": 305.4
  },
  "luminance": 0.03277
}

Semantic roles & 50–950 ramp

primary
#4C1276
secondary
#69AD37
accent
#F03885
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4C1276

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

Preview Lab → · Contrast checker → · Palette generator →

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