#4A1474#4A1474

#4A1474 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.7% C 0.151 H 304.7°. Best body text is #FFFFFF at 12.78:1 contrast (WCAG AA passes).

Color values

HEX#4A1474
RGBrgb(74, 20, 116)
HSLhsl(274, 71%, 27%)
HSVhsv(274, 83%, 45%)
CMYKcmyk(36.2%, 82.8%, 0%, 54.5%)
CIE-LABlab(20.89, 42.53, -43.69)
CIE-LCHlch(20.89, 60.97, 314.23°)
OKLaboklab(33.74% 0.0862 -0.1245)
OKLCHoklch(33.74% 0.151 304.7)
XYZxyz(6.2259, 3.2171, 16.8126)
Luminance0.0322 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1474 #3E7414
analogous
#1A1474 #4A1474 #74146E
triadic
#4A1474 #744A14 #14744A
tetradic
#4A1474 #741A14 #3E7414 #146E74
square
#4A1474 #741A14 #3E7414 #146E74
split-complementary
#4A1474 #6E7414 #14741A
monochromatic
#11051A #290B40 #4A1474 #6B1DA8 #8C28DA

Accessibility & contrast

On white

12.78
#4A1474 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#4A1474 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A1474
12.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1474#FFFFFF#000000##FFFFFF
##4A14741.0012.781.6412.78
#FFFFFF12.781.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003177
Deuteranopia (green-blind)
#003272
Tritanopia (blue-blind)
#422E44
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #4a1474;
/* rgb */ color: rgb(74, 20, 116);
/* oklch */ color: oklch(33.7% 0.151 304.7);
Tailwind
colors: {
  custom: {
    50: '#81599d',
    500: '#4a1474',
    950: '#000000',
  },
}
SCSS
$custom: #4a1474;
$custom-light: #81599d;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1474",
  "rgb": {
    "r": 74,
    "g": 20,
    "b": 116
  },
  "hsl": {
    "h": 273.75,
    "s": 70.588,
    "l": 26.667
  },
  "oklch": {
    "l": 0.33743,
    "c": 0.15145,
    "h": 304.7
  },
  "luminance": 0.03217
}

Semantic roles & 50–950 ramp

primary
#4A1474
secondary
#6BAA3A
accent
#ED3A89
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4A1474

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

Preview Lab → · Contrast checker → · Palette generator →

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