#4A1479#4A1479

#4A1479 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.2% C 0.157 H 302.7°. Best body text is #FFFFFF at 12.59:1 contrast (WCAG AA passes).

Color values

HEX#4A1479
RGBrgb(74, 20, 121)
HSLhsl(272, 72%, 28%)
HSVhsv(272, 83%, 47%)
CMYKcmyk(38.8%, 83.5%, 0%, 52.5%)
CIE-LABlab(21.34, 43.76, -46.16)
CIE-LCHlch(21.34, 63.60, 313.47°)
OKLaboklab(34.2% 0.0847 -0.1318)
OKLCHoklch(34.2% 0.157 302.7)
XYZxyz(6.5246, 3.3366, 18.3857)
Luminance0.0334 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1479 #437914
analogous
#171479 #4A1479 #791475
triadic
#4A1479 #794A14 #14794A
tetradic
#4A1479 #791714 #437914 #147579
square
#4A1479 #791714 #437914 #147579
split-complementary
#4A1479 #757914 #147917
monochromatic
#10041A #2A0B44 #4A1479 #6A1DAE #8A2BDC

Accessibility & contrast

On white

12.59
#4A1479 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#4A1479 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A1479
12.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1479#FFFFFF#000000##FFFFFF
##4A14791.0012.591.6712.59
#FFFFFF12.591.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327C
Deuteranopia (green-blind)
#003377
Tritanopia (blue-blind)
#403047
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #4a1479;
/* rgb */ color: rgb(74, 20, 121);
/* oklch */ color: oklch(34.2% 0.157 302.7);
Tailwind
colors: {
  custom: {
    50: '#8259a1',
    500: '#4a1479',
    950: '#000000',
  },
}
SCSS
$custom: #4a1479;
$custom-light: #8259a1;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1479",
  "rgb": {
    "r": 74,
    "g": 20,
    "b": 121
  },
  "hsl": {
    "h": 272.079,
    "s": 71.631,
    "l": 27.647
  },
  "oklch": {
    "l": 0.34197,
    "c": 0.15665,
    "h": 302.7
  },
  "luminance": 0.03337
}

Semantic roles & 50–950 ramp

primary
#4A1479
secondary
#70AF3A
accent
#EE398E
background
#F8F5FA
surface
#EFE9F3
border
#CAC5CD
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4A1479

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

Preview Lab → · Contrast checker → · Palette generator →

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