#4C1470#4C1470

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

Color values

HEX#4C1470
RGBrgb(76, 20, 112)
HSLhsl(277, 70%, 26%)
HSVhsv(277, 82%, 44%)
CMYKcmyk(32.1%, 82.1%, 0%, 56.1%)
CIE-LABlab(20.85, 41.93, -41.16)
CIE-LCHlch(20.85, 58.76, 315.53°)
OKLaboklab(33.67% 0.0904 -0.117)
OKLCHoklch(33.67% 0.148 307.7)
XYZxyz(6.1547, 3.2068, 15.6208)
Luminance0.0321 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1470 #387014
analogous
#1E1470 #4C1470 #701466
triadic
#4C1470 #704C14 #14704C
tetradic
#4C1470 #701E14 #387014 #146670
square
#4C1470 #701E14 #387014 #146670
split-complementary
#4C1470 #667014 #14701E
monochromatic
#12051A #290B3C #4C1470 #6F1DA4 #9227D8

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4C1470#FFFFFF#000000##FFFFFF
##4C14701.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)
#003072
Deuteranopia (green-blind)
#00336E
Tritanopia (blue-blind)
#462C42
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #4c1470;
/* rgb */ color: rgb(76, 20, 112);
/* oklch */ color: oklch(33.7% 0.148 307.7);
Tailwind
colors: {
  custom: {
    50: '#82599a',
    500: '#4c1470',
    950: '#000000',
  },
}
SCSS
$custom: #4c1470;
$custom-light: #82599a;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1470",
  "rgb": {
    "r": 76,
    "g": 20,
    "b": 112
  },
  "hsl": {
    "h": 276.522,
    "s": 69.697,
    "l": 25.882
  },
  "oklch": {
    "l": 0.33672,
    "c": 0.14784,
    "h": 307.7
  },
  "luminance": 0.03207
}

Semantic roles & 50–950 ramp

primary
#4C1470
secondary
#64A639
accent
#ED3B81
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4C1470

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

Preview Lab → · Contrast checker → · Palette generator →

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