#4C1273#4C1273

#4C1273 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.8% C 0.153 H 306.6°. Best body text is #FFFFFF at 12.79:1 contrast (WCAG AA passes).

Color values

HEX#4C1273
RGBrgb(76, 18, 115)
HSLhsl(276, 73%, 26%)
HSVhsv(276, 84%, 45%)
CMYKcmyk(33.9%, 84.3%, 0%, 54.9%)
CIE-LABlab(20.85, 43.39, -43.09)
CIE-LCHlch(20.85, 61.16, 315.20°)
OKLaboklab(33.75% 0.0912 -0.1227)
OKLCHoklch(33.75% 0.153 306.6)
XYZxyz(6.2906, 3.2070, 16.5039)
Luminance0.0321 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1273 #397312
analogous
#1B1273 #4C1273 #731269
triadic
#4C1273 #734C12 #12734C
tetradic
#4C1273 #731B12 #397312 #126973
square
#4C1273 #731B12 #397312 #126973
split-complementary
#4C1273 #697312 #12731B
monochromatic
#11041A #290A3E #4C1273 #6F1AA8 #9223DD

Accessibility & contrast

On white

12.79
#4C1273 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#4C1273 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C1273
12.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1273#FFFFFF#000000##FFFFFF
##4C12731.0012.791.6412.79
#FFFFFF12.791.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003076
Deuteranopia (green-blind)
#003271
Tritanopia (blue-blind)
#452C43
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #4c1273;
/* rgb */ color: rgb(76, 18, 115);
/* oklch */ color: oklch(33.8% 0.153 306.6);
Tailwind
colors: {
  custom: {
    50: '#83589c',
    500: '#4c1273',
    950: '#000000',
  },
}
SCSS
$custom: #4c1273;
$custom-light: #83589c;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1273",
  "rgb": {
    "r": 76,
    "g": 18,
    "b": 115
  },
  "hsl": {
    "h": 275.876,
    "s": 72.932,
    "l": 26.078
  },
  "oklch": {
    "l": 0.33753,
    "c": 0.15288,
    "h": 306.6
  },
  "luminance": 0.03207
}

Semantic roles & 50–950 ramp

primary
#4C1273
secondary
#65AA37
accent
#F03882
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4C1273

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

Preview Lab → · Contrast checker → · Palette generator →

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