#4C1F72#4C1F72

#4C1F72 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.1% C 0.137 H 305.1°. Best body text is #FFFFFF at 12.03:1 contrast (WCAG AA passes).

Color values

HEX#4C1F72
RGBrgb(76, 31, 114)
HSLhsl(273, 57%, 28%)
HSVhsv(273, 73%, 45%)
CMYKcmyk(33.3%, 72.8%, 0%, 55.3%)
CIE-LABlab(22.76, 37.46, -39.35)
CIE-LCHlch(22.76, 54.33, 313.59°)
OKLaboklab(35.07% 0.0787 -0.1118)
OKLCHoklch(35.07% 0.137 305.1)
XYZxyz(6.5071, 3.7314, 16.2938)
Luminance0.0373 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1F72 #45721F
analogous
#221F72 #4C1F72 #721F6E
triadic
#4C1F72 #724C1F #1F724C
tetradic
#4C1F72 #72221F #45721F #1F6E72
square
#4C1F72 #72221F #45721F #1F6E72
split-complementary
#4C1F72 #6E721F #1F7222
monochromatic
#100718 #2C1242 #4C1F72 #6C2CA2 #8C40CB

Accessibility & contrast

On white

12.03
#4C1F72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#4C1F72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C1F72
12.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1F72#FFFFFF#000000##FFFFFF
##4C1F721.0012.031.7512.03
#FFFFFF12.031.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003574
Deuteranopia (green-blind)
#003670
Tritanopia (blue-blind)
#453246
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #4c1f72;
/* rgb */ color: rgb(76, 31, 114);
/* oklch */ color: oklch(35.1% 0.137 305.1);
Tailwind
colors: {
  custom: {
    50: '#825f9b',
    500: '#4c1f72',
    950: '#000000',
  },
}
SCSS
$custom: #4c1f72;
$custom-light: #825f9b;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1f72",
  "rgb": {
    "r": 76,
    "g": 31,
    "b": 114
  },
  "hsl": {
    "h": 272.53,
    "s": 57.241,
    "l": 28.431
  },
  "oklch": {
    "l": 0.35073,
    "c": 0.13668,
    "h": 305.1
  },
  "luminance": 0.03731
}

Semantic roles & 50–950 ramp

primary
#4C1F72
secondary
#72A647
accent
#E0478D
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B050E
muted
#7C797E

Preview Lab

Preview with #4C1F72

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

Preview Lab → · Contrast checker → · Palette generator →

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