#4C1270#4C1270

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

Color values

HEX#4C1270
RGBrgb(76, 18, 112)
HSLhsl(277, 72%, 25%)
HSVhsv(277, 84%, 44%)
CMYKcmyk(32.1%, 83.9%, 0%, 56.1%)
CIE-LABlab(20.59, 42.69, -41.58)
CIE-LCHlch(20.59, 59.59, 315.75°)
OKLaboklab(33.49% 0.0921 -0.1182)
OKLCHoklch(33.49% 0.15 307.9)
XYZxyz(6.1208, 3.1391, 15.6095)
Luminance0.0314 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1270 #367012
analogous
#1D1270 #4C1270 #701265
triadic
#4C1270 #704C12 #12704C
tetradic
#4C1270 #701D12 #367012 #126570
square
#4C1270 #701D12 #367012 #126570
split-complementary
#4C1270 #657012 #12701D
monochromatic
#12041A #280A3B #4C1270 #701AA5 #9423D9

Accessibility & contrast

On white

12.90
#4C1270 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#4C1270 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C1270
12.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1270#FFFFFF#000000##FFFFFF
##4C12701.0012.901.6312.90
#FFFFFF12.901.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003073
Deuteranopia (green-blind)
#00326E
Tritanopia (blue-blind)
#462B42
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #4c1270;
/* rgb */ color: rgb(76, 18, 112);
/* oklch */ color: oklch(33.5% 0.150 307.9);
Tailwind
colors: {
  custom: {
    50: '#82589a',
    500: '#4c1270',
    950: '#000000',
  },
}
SCSS
$custom: #4c1270;
$custom-light: #82589a;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1270",
  "rgb": {
    "r": 76,
    "g": 18,
    "b": 112
  },
  "hsl": {
    "h": 277.021,
    "s": 72.308,
    "l": 25.49
  },
  "oklch": {
    "l": 0.33489,
    "c": 0.14987,
    "h": 307.9
  },
  "luminance": 0.03139
}

Semantic roles & 50–950 ramp

primary
#4C1270
secondary
#62A737
accent
#EF397F
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4C1270

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

Preview Lab → · Contrast checker → · Palette generator →

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