#4C1271#4C1271

#4C1271 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.6% C 0.151 H 307.5°. Best body text is #FFFFFF at 12.87:1 contrast (WCAG AA passes).

Color values

HEX#4C1271
RGBrgb(76, 18, 113)
HSLhsl(277, 73%, 26%)
HSVhsv(277, 84%, 44%)
CMYKcmyk(32.7%, 84.1%, 0%, 55.7%)
CIE-LABlab(20.68, 42.92, -42.09)
CIE-LCHlch(20.68, 60.11, 315.56°)
OKLaboklab(33.58% 0.0918 -0.1197)
OKLCHoklch(33.58% 0.151 307.5)
XYZxyz(6.1768, 3.1615, 15.9044)
Luminance0.0316 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1271 #377112
analogous
#1D1271 #4C1271 #711266
triadic
#4C1271 #714C12 #12714C
tetradic
#4C1271 #711D12 #377112 #126671
square
#4C1271 #711D12 #377112 #126671
split-complementary
#4C1271 #667112 #12711D
monochromatic
#12041A #280A3C #4C1271 #701AA6 #9323DB

Accessibility & contrast

On white

12.87
#4C1271 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#4C1271 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C1271
12.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1271#FFFFFF#000000##FFFFFF
##4C12711.0012.871.6312.87
#FFFFFF12.871.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003074
Deuteranopia (green-blind)
#00326F
Tritanopia (blue-blind)
#462B42
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #4c1271;
/* rgb */ color: rgb(76, 18, 113);
/* oklch */ color: oklch(33.6% 0.151 307.5);
Tailwind
colors: {
  custom: {
    50: '#83589b',
    500: '#4c1271',
    950: '#000000',
  },
}
SCSS
$custom: #4c1271;
$custom-light: #83589b;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1271",
  "rgb": {
    "r": 76,
    "g": 18,
    "b": 113
  },
  "hsl": {
    "h": 276.632,
    "s": 72.519,
    "l": 25.686
  },
  "oklch": {
    "l": 0.33577,
    "c": 0.15087,
    "h": 307.5
  },
  "luminance": 0.03161
}

Semantic roles & 50–950 ramp

primary
#4C1271
secondary
#63A837
accent
#EF3980
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4C1271

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

Preview Lab → · Contrast checker → · Palette generator →

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