#4C1072#4C1072

#4C1072 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.5% C 0.154 H 307.3°. Best body text is #FFFFFF at 12.93:1 contrast (WCAG AA passes).

Color values

HEX#4C1072
RGBrgb(76, 16, 114)
HSLhsl(277, 75%, 25%)
HSVhsv(277, 86%, 45%)
CMYKcmyk(33.3%, 86%, 0%, 55.3%)
CIE-LABlab(20.53, 43.86, -42.98)
CIE-LCHlch(20.53, 61.41, 315.58°)
OKLaboklab(33.5% 0.0931 -0.1223)
OKLCHoklch(33.5% 0.154 307.3)
XYZxyz(6.2024, 3.1221, 16.1922)
Luminance0.0312 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1072 #367210
analogous
#1B1072 #4C1072 #721067
triadic
#4C1072 #724C10 #10724C
tetradic
#4C1072 #721B10 #367210 #106772
square
#4C1072 #721B10 #367210 #106772
split-complementary
#4C1072 #677210 #10721B
monochromatic
#12041B #28083C #4C1072 #7018A8 #941FDD

Accessibility & contrast

On white

12.93
#4C1072 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#4C1072 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C1072
12.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1072#FFFFFF#000000##FFFFFF
##4C10721.0012.931.6212.93
#FFFFFF12.931.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.931.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4c1072;
/* rgb */ color: rgb(76, 16, 114);
/* oklch */ color: oklch(33.5% 0.154 307.3);
Tailwind
colors: {
  custom: {
    50: '#83589b',
    500: '#4c1072',
    950: '#000000',
  },
}
SCSS
$custom: #4c1072;
$custom-light: #83589b;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1072",
  "rgb": {
    "r": 76,
    "g": 16,
    "b": 114
  },
  "hsl": {
    "h": 276.735,
    "s": 75.385,
    "l": 25.49
  },
  "oklch": {
    "l": 0.33497,
    "c": 0.15373,
    "h": 307.3
  },
  "luminance": 0.03122
}

Semantic roles & 50–950 ramp

primary
#4C1072
secondary
#62A934
accent
#F2367F
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4C1072

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

Preview Lab → · Contrast checker → · Palette generator →

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