#4A1C72#4A1C72

#4A1C72 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.4% C 0.140 H 304.3°. Best body text is #FFFFFF at 12.35:1 contrast (WCAG AA passes).

Color values

HEX#4A1C72
RGBrgb(74, 28, 114)
HSLhsl(272, 61%, 28%)
HSVhsv(272, 75%, 45%)
CMYKcmyk(35.1%, 75.4%, 0%, 55.3%)
CIE-LABlab(21.95, 38.52, -40.68)
CIE-LCHlch(21.95, 56.02, 313.44°)
OKLaboklab(34.43% 0.079 -0.1157)
OKLCHoklch(34.43% 0.14 304.3)
XYZxyz(6.2759, 3.5013, 16.2615)
Luminance0.0350 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1C72 #44721C
analogous
#1F1C72 #4A1C72 #721C6F
triadic
#4A1C72 #724A1C #1C724A
tetradic
#4A1C72 #721F1C #44721C #1C6F72
square
#4A1C72 #721F1C #44721C #1C6F72
split-complementary
#4A1C72 #6F721C #1C721F
monochromatic
#100619 #2A1041 #4A1C72 #6A28A3 #893ACF

Accessibility & contrast

On white

12.35
#4A1C72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#4A1C72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A1C72
12.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1C72#FFFFFF#000000##FFFFFF
##4A1C721.0012.351.7012.35
#FFFFFF12.351.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003374
Deuteranopia (green-blind)
#003470
Tritanopia (blue-blind)
#423145
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4a1c72;
/* rgb */ color: rgb(74, 28, 114);
/* oklch */ color: oklch(34.4% 0.140 304.3);
Tailwind
colors: {
  custom: {
    50: '#815d9b',
    500: '#4a1c72',
    950: '#000000',
  },
}
SCSS
$custom: #4a1c72;
$custom-light: #815d9b;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1c72",
  "rgb": {
    "r": 74,
    "g": 28,
    "b": 114
  },
  "hsl": {
    "h": 272.093,
    "s": 60.563,
    "l": 27.843
  },
  "oklch": {
    "l": 0.34432,
    "c": 0.14013,
    "h": 304.3
  },
  "luminance": 0.03501
}

Semantic roles & 50–950 ramp

primary
#4A1C72
secondary
#71A643
accent
#E4448E
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4A1C72

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

Preview Lab → · Contrast checker → · Palette generator →

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