#4C1972#4C1972

#4C1972 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.4% C 0.144 H 306.1°. Best body text is #FFFFFF at 12.43:1 contrast (WCAG AA passes).

Color values

HEX#4C1972
RGBrgb(76, 25, 114)
HSLhsl(274, 64%, 27%)
HSVhsv(274, 78%, 45%)
CMYKcmyk(33.3%, 78.1%, 0%, 55.3%)
CIE-LABlab(21.75, 40.32, -40.99)
CIE-LCHlch(21.75, 57.50, 314.53°)
OKLaboklab(34.36% 0.0851 -0.1166)
OKLCHoklch(34.36% 0.144 306.1)
XYZxyz(6.3647, 3.4467, 16.2463)
Luminance0.0345 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1972 #3F7219
analogous
#1F1972 #4C1972 #72196C
triadic
#4C1972 #724C19 #19724C
tetradic
#4C1972 #721F19 #3F7219 #196C72
square
#4C1972 #721F19 #3F7219 #196C72
split-complementary
#4C1972 #6C7219 #19721F
monochromatic
#110619 #2B0E40 #4C1972 #6D24A4 #8E33D2

Accessibility & contrast

On white

12.43
#4C1972 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#4C1972 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C1972
12.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1972#FFFFFF#000000##FFFFFF
##4C19721.0012.431.6912.43
#FFFFFF12.431.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003375
Deuteranopia (green-blind)
#003470
Tritanopia (blue-blind)
#452F44
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #4c1972;
/* rgb */ color: rgb(76, 25, 114);
/* oklch */ color: oklch(34.4% 0.144 306.1);
Tailwind
colors: {
  custom: {
    50: '#825b9b',
    500: '#4c1972',
    950: '#000000',
  },
}
SCSS
$custom: #4c1972;
$custom-light: #825b9b;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1972",
  "rgb": {
    "r": 76,
    "g": 25,
    "b": 114
  },
  "hsl": {
    "h": 274.382,
    "s": 64.029,
    "l": 27.255
  },
  "oklch": {
    "l": 0.34355,
    "c": 0.14434,
    "h": 306.1
  },
  "luminance": 0.03447
}

Semantic roles & 50–950 ramp

primary
#4C1972
secondary
#6CA740
accent
#E74188
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4C1972

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

Preview Lab → · Contrast checker → · Palette generator →

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