#4A1771#4A1771

#4A1771 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.8% C 0.145 H 305.5°. Best body text is #FFFFFF at 12.71:1 contrast (WCAG AA passes).

Color values

HEX#4A1771
RGBrgb(74, 23, 113)
HSLhsl(274, 66%, 27%)
HSVhsv(274, 80%, 44%)
CMYKcmyk(34.5%, 79.6%, 0%, 55.7%)
CIE-LABlab(21.06, 40.56, -41.48)
CIE-LCHlch(21.06, 58.02, 314.35°)
OKLaboklab(33.78% 0.0843 -0.1181)
OKLCHoklch(33.78% 0.145 305.5)
XYZxyz(6.1104, 3.2609, 15.9271)
Luminance0.0326 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1771 #3E7117
analogous
#1D1771 #4A1771 #71176B
triadic
#4A1771 #714A17 #17714A
tetradic
#4A1771 #711D17 #3E7117 #176B71
square
#4A1771 #711D17 #3E7117 #176B71
split-complementary
#4A1771 #6B7117 #17711D
monochromatic
#110519 #290D3E #4A1771 #6B21A4 #8C2ED4

Accessibility & contrast

On white

12.71
#4A1771 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#4A1771 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A1771
12.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1771#FFFFFF#000000##FFFFFF
##4A17711.0012.711.6512.71
#FFFFFF12.711.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003174
Deuteranopia (green-blind)
#00336F
Tritanopia (blue-blind)
#432E43
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #4a1771;
/* rgb */ color: rgb(74, 23, 113);
/* oklch */ color: oklch(33.8% 0.145 305.5);
Tailwind
colors: {
  custom: {
    50: '#815a9a',
    500: '#4a1771',
    950: '#000000',
  },
}
SCSS
$custom: #4a1771;
$custom-light: #815a9a;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1771",
  "rgb": {
    "r": 74,
    "g": 23,
    "b": 113
  },
  "hsl": {
    "h": 274,
    "s": 66.176,
    "l": 26.667
  },
  "oklch": {
    "l": 0.33779,
    "c": 0.14507,
    "h": 305.5
  },
  "luminance": 0.03261
}

Semantic roles & 50–950 ramp

primary
#4A1771
secondary
#6BA73D
accent
#E93F89
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4A1771

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

Preview Lab → · Contrast checker → · Palette generator →

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