#4C1272#4C1272

#4C1272 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.7% C 0.152 H 307.0°. Best body text is #FFFFFF at 12.83:1 contrast (WCAG AA passes).

Color values

HEX#4C1272
RGBrgb(76, 18, 114)
HSLhsl(276, 73%, 26%)
HSVhsv(276, 84%, 45%)
CMYKcmyk(33.3%, 84.2%, 0%, 55.3%)
CIE-LABlab(20.77, 43.16, -42.59)
CIE-LCHlch(20.77, 60.64, 315.38°)
OKLaboklab(33.67% 0.0915 -0.1212)
OKLCHoklch(33.67% 0.152 307)
XYZxyz(6.2334, 3.1841, 16.2025)
Luminance0.0318 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1272 #387212
analogous
#1C1272 #4C1272 #721268
triadic
#4C1272 #724C12 #12724C
tetradic
#4C1272 #721C12 #387212 #126872
square
#4C1272 #721C12 #387212 #126872
split-complementary
#4C1272 #687212 #12721C
monochromatic
#12041A #290A3D #4C1272 #6F1AA7 #9223DC

Accessibility & contrast

On white

12.83
#4C1272 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C1272
12.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1272#FFFFFF#000000##FFFFFF
##4C12721.0012.831.6412.83
#FFFFFF12.831.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.831.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4c1272;
/* rgb */ color: rgb(76, 18, 114);
/* oklch */ color: oklch(33.7% 0.152 307.0);
Tailwind
colors: {
  custom: {
    50: '#83589b',
    500: '#4c1272',
    950: '#000000',
  },
}
SCSS
$custom: #4c1272;
$custom-light: #83589b;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1272",
  "rgb": {
    "r": 76,
    "g": 18,
    "b": 114
  },
  "hsl": {
    "h": 276.25,
    "s": 72.727,
    "l": 25.882
  },
  "oklch": {
    "l": 0.33665,
    "c": 0.15188,
    "h": 307
  },
  "luminance": 0.03184
}

Semantic roles & 50–950 ramp

primary
#4C1272
secondary
#64A937
accent
#EF3881
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4C1272

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

Preview Lab → · Contrast checker → · Palette generator →

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