#4A1C71#4A1C71

#4A1C71 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.3% C 0.139 H 304.7°. Best body text is #FFFFFF at 12.38:1 contrast (WCAG AA passes).

Color values

HEX#4A1C71
RGBrgb(74, 28, 113)
HSLhsl(272, 60%, 28%)
HSVhsv(272, 75%, 44%)
CMYKcmyk(34.5%, 75.2%, 0%, 55.7%)
CIE-LABlab(21.87, 38.26, -40.17)
CIE-LCHlch(21.87, 55.48, 313.61°)
OKLaboklab(34.35% 0.0792 -0.1142)
OKLCHoklch(34.35% 0.139 304.7)
XYZxyz(6.2193, 3.4786, 15.9634)
Luminance0.0348 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1C71 #43711C
analogous
#201C71 #4A1C71 #711C6D
triadic
#4A1C71 #714A1C #1C714A
tetradic
#4A1C71 #71201C #43711C #1C6D71
square
#4A1C71 #71201C #43711C #1C6D71
split-complementary
#4A1C71 #6D711C #1C7120
monochromatic
#100619 #2A1040 #4A1C71 #6A28A2 #8A39CE

Accessibility & contrast

On white

12.38
#4A1C71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4A1C71
12.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1C71#FFFFFF#000000##FFFFFF
##4A1C711.0012.381.7012.38
#FFFFFF12.381.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003373
Deuteranopia (green-blind)
#00346F
Tritanopia (blue-blind)
#433044
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #4a1c71;
/* rgb */ color: rgb(74, 28, 113);
/* oklch */ color: oklch(34.3% 0.139 304.7);
Tailwind
colors: {
  custom: {
    50: '#815d9a',
    500: '#4a1c71',
    950: '#000000',
  },
}
SCSS
$custom: #4a1c71;
$custom-light: #815d9a;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1c71",
  "rgb": {
    "r": 74,
    "g": 28,
    "b": 113
  },
  "hsl": {
    "h": 272.471,
    "s": 60.284,
    "l": 27.647
  },
  "oklch": {
    "l": 0.34348,
    "c": 0.13901,
    "h": 304.7
  },
  "luminance": 0.03479
}

Semantic roles & 50–950 ramp

primary
#4A1C71
secondary
#70A643
accent
#E3448D
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4A1C71

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

Preview Lab → · Contrast checker → · Palette generator →

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