#4A1271#4A1271

#4A1271 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.3% C 0.150 H 306.2°. Best body text is #FFFFFF at 12.99:1 contrast (WCAG AA passes).

Color values

HEX#4A1271
RGBrgb(74, 18, 113)
HSLhsl(275, 73%, 26%)
HSVhsv(275, 84%, 44%)
CMYKcmyk(34.5%, 84.1%, 0%, 55.7%)
CIE-LABlab(20.36, 42.57, -42.62)
CIE-LCHlch(20.36, 60.23, 314.97°)
OKLaboklab(33.29% 0.0888 -0.1214)
OKLCHoklch(33.29% 0.15 306.2)
XYZxyz(6.0203, 3.0808, 15.8971)
Luminance0.0308 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1271 #397112
analogous
#1A1271 #4A1271 #711268
triadic
#4A1271 #714A12 #12714A
tetradic
#4A1271 #711A12 #397112 #126871
square
#4A1271 #711A12 #397112 #126871
split-complementary
#4A1271 #687112 #12711A
monochromatic
#11041A #270A3C #4A1271 #6D1AA6 #8F23DB

Accessibility & contrast

On white

12.99
#4A1271 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#4A1271 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A1271
12.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1271#FFFFFF#000000##FFFFFF
##4A12711.0012.991.6212.99
#FFFFFF12.991.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F74
Deuteranopia (green-blind)
#00316F
Tritanopia (blue-blind)
#432B42
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #4a1271;
/* rgb */ color: rgb(74, 18, 113);
/* oklch */ color: oklch(33.3% 0.150 306.2);
Tailwind
colors: {
  custom: {
    50: '#81589b',
    500: '#4a1271',
    950: '#000000',
  },
}
SCSS
$custom: #4a1271;
$custom-light: #81589b;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1271",
  "rgb": {
    "r": 74,
    "g": 18,
    "b": 113
  },
  "hsl": {
    "h": 275.368,
    "s": 72.519,
    "l": 25.686
  },
  "oklch": {
    "l": 0.33292,
    "c": 0.15035,
    "h": 306.2
  },
  "luminance": 0.03081
}

Semantic roles & 50–950 ramp

primary
#4A1271
secondary
#65A837
accent
#EF3984
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4A1271

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

Preview Lab → · Contrast checker → · Palette generator →

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