#4C1281#4C1281

#4C1281 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.0% C 0.167 H 301.2°. Best body text is #FFFFFF at 12.27:1 contrast (WCAG AA passes).

Color values

HEX#4C1281
RGBrgb(76, 18, 129)
HSLhsl(271, 76%, 29%)
HSVhsv(271, 86%, 51%)
CMYKcmyk(41.1%, 86%, 0%, 49.4%)
CIE-LABlab(22.14, 46.76, -49.93)
CIE-LCHlch(22.14, 68.41, 313.12°)
OKLaboklab(35.04% 0.0866 -0.1428)
OKLCHoklch(35.04% 0.167 301.2)
XYZxyz(7.1583, 3.5540, 21.0735)
Luminance0.0355 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1281 #478112
analogous
#141281 #4C1281 #81127F
triadic
#4C1281 #814C12 #12814C
tetradic
#4C1281 #811412 #478112 #127F81
square
#4C1281 #811412 #478112 #127F81
split-complementary
#4C1281 #7F8112 #128114
monochromatic
#10041B #2C0B4B #4C1281 #6C19B7 #8B2CE2

Accessibility & contrast

On white

12.27
#4C1281 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#4C1281 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C1281
12.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1281#FFFFFF#000000##FFFFFF
##4C12811.0012.271.7112.27
#FFFFFF12.271.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003484
Deuteranopia (green-blind)
#00347F
Tritanopia (blue-blind)
#40324B
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4c1281;
/* rgb */ color: rgb(76, 18, 129);
/* oklch */ color: oklch(35.0% 0.167 301.2);
Tailwind
colors: {
  custom: {
    50: '#8459a7',
    500: '#4c1281',
    950: '#000000',
  },
}
SCSS
$custom: #4c1281;
$custom-light: #8459a7;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1281",
  "rgb": {
    "r": 76,
    "g": 18,
    "b": 129
  },
  "hsl": {
    "h": 271.351,
    "s": 75.51,
    "l": 28.824
  },
  "oklch": {
    "l": 0.35039,
    "c": 0.167,
    "h": 301.2
  },
  "luminance": 0.03554
}

Semantic roles & 50–950 ramp

primary
#4C1281
secondary
#75B738
accent
#F23690
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #4C1281

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

Preview Lab → · Contrast checker → · Palette generator →

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