#4A1477#4A1477

#4A1477 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.0% C 0.155 H 303.5°. Best body text is #FFFFFF at 12.67:1 contrast (WCAG AA passes).

Color values

HEX#4A1477
RGBrgb(74, 20, 119)
HSLhsl(273, 71%, 27%)
HSVhsv(273, 83%, 47%)
CMYKcmyk(37.8%, 83.2%, 0%, 53.3%)
CIE-LABlab(21.16, 43.27, -45.17)
CIE-LCHlch(21.16, 62.55, 313.76°)
OKLaboklab(34.01% 0.0853 -0.1289)
OKLCHoklch(34.01% 0.155 303.5)
XYZxyz(6.4032, 3.2881, 17.7465)
Luminance0.0329 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1477 #417714
analogous
#181477 #4A1477 #771473
triadic
#4A1477 #774A14 #14774A
tetradic
#4A1477 #771814 #417714 #147377
square
#4A1477 #771814 #417714 #147377
split-complementary
#4A1477 #737714 #147718
monochromatic
#10041A #290B43 #4A1477 #6B1DAB #8B2ADB

Accessibility & contrast

On white

12.67
#4A1477 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#4A1477 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A1477
12.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1477#FFFFFF#000000##FFFFFF
##4A14771.0012.671.6612.67
#FFFFFF12.671.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327A
Deuteranopia (green-blind)
#003375
Tritanopia (blue-blind)
#412F46
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #4a1477;
/* rgb */ color: rgb(74, 20, 119);
/* oklch */ color: oklch(34.0% 0.155 303.5);
Tailwind
colors: {
  custom: {
    50: '#82599f',
    500: '#4a1477',
    950: '#000000',
  },
}
SCSS
$custom: #4a1477;
$custom-light: #82599f;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1477",
  "rgb": {
    "r": 74,
    "g": 20,
    "b": 119
  },
  "hsl": {
    "h": 272.727,
    "s": 71.223,
    "l": 27.255
  },
  "oklch": {
    "l": 0.34014,
    "c": 0.15457,
    "h": 303.5
  },
  "luminance": 0.03288
}

Semantic roles & 50–950 ramp

primary
#4A1477
secondary
#6EAD3A
accent
#EE3A8C
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040F
muted
#7C797E

Preview Lab

Preview with #4A1477

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

Preview Lab → · Contrast checker → · Palette generator →

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