#4A1C76#4A1C76

#4A1C76 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.8% C 0.145 H 302.7°. Best body text is #FFFFFF at 12.22:1 contrast (WCAG AA passes).

Color values

HEX#4A1C76
RGBrgb(74, 28, 118)
HSLhsl(271, 62%, 29%)
HSVhsv(271, 76%, 46%)
CMYKcmyk(37.3%, 76.3%, 0%, 53.7%)
CIE-LABlab(22.28, 39.55, -42.71)
CIE-LCHlch(22.28, 58.21, 312.80°)
OKLaboklab(34.77% 0.0782 -0.1217)
OKLCHoklch(34.77% 0.145 302.7)
XYZxyz(6.5085, 3.5944, 17.4869)
Luminance0.0359 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1C76 #48761C
analogous
#1D1C76 #4A1C76 #761C75
triadic
#4A1C76 #764A1C #1C764A
tetradic
#4A1C76 #761D1C #48761C #1C7576
square
#4A1C76 #761D1C #48761C #1C7576
split-complementary
#4A1C76 #75761C #1C761D
monochromatic
#100619 #2B1045 #4A1C76 #6928A7 #883CD1

Accessibility & contrast

On white

12.22
#4A1C76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#4A1C76 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A1C76
12.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1C76#FFFFFF#000000##FFFFFF
##4A1C761.0012.221.7212.22
#FFFFFF12.221.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003479
Deuteranopia (green-blind)
#003574
Tritanopia (blue-blind)
#413247
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4a1c76;
/* rgb */ color: rgb(74, 28, 118);
/* oklch */ color: oklch(34.8% 0.145 302.7);
Tailwind
colors: {
  custom: {
    50: '#815d9e',
    500: '#4a1c76',
    950: '#000000',
  },
}
SCSS
$custom: #4a1c76;
$custom-light: #815d9e;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1c76",
  "rgb": {
    "r": 74,
    "g": 28,
    "b": 118
  },
  "hsl": {
    "h": 270.667,
    "s": 61.644,
    "l": 28.627
  },
  "oklch": {
    "l": 0.34773,
    "c": 0.14464,
    "h": 302.7
  },
  "luminance": 0.03594
}

Semantic roles & 50–950 ramp

primary
#4A1C76
secondary
#76AA44
accent
#E54392
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4A1C76

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

Preview Lab → · Contrast checker → · Palette generator →

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