#4A1D79#4A1D79

#4A1D79 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.2% C 0.147 H 301.4°. Best body text is #FFFFFF at 12.05:1 contrast (WCAG AA passes).

Color values

HEX#4A1D79
RGBrgb(74, 29, 121)
HSLhsl(269, 61%, 29%)
HSVhsv(269, 76%, 47%)
CMYKcmyk(38.8%, 76%, 0%, 52.5%)
CIE-LABlab(22.71, 39.85, -43.94)
CIE-LCHlch(22.71, 59.32, 312.21°)
OKLaboklab(35.15% 0.0765 -0.1253)
OKLCHoklch(35.15% 0.147 301.4)
XYZxyz(6.7138, 3.7150, 18.4488)
Luminance0.0372 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1D79 #4C791D
analogous
#1D1E79 #4A1D79 #781D79
triadic
#4A1D79 #794A1D #1D794A
tetradic
#4A1D79 #791D1E #4C791D #1D7978
square
#4A1D79 #791D1E #4C791D #1D7978
split-complementary
#4A1D79 #79781D #1E791D
monochromatic
#0F0619 #2C1148 #4A1D79 #6829AA #873FD1

Accessibility & contrast

On white

12.05
#4A1D79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#4A1D79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A1D79
12.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1D79#FFFFFF#000000##FFFFFF
##4A1D791.0012.051.7412.05
#FFFFFF12.051.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367C
Deuteranopia (green-blind)
#003677
Tritanopia (blue-blind)
#403449
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #4a1d79;
/* rgb */ color: rgb(74, 29, 121);
/* oklch */ color: oklch(35.2% 0.147 301.4);
Tailwind
colors: {
  custom: {
    50: '#815ea0',
    500: '#4a1d79',
    950: '#000000',
  },
}
SCSS
$custom: #4a1d79;
$custom-light: #815ea0;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1d79",
  "rgb": {
    "r": 74,
    "g": 29,
    "b": 121
  },
  "hsl": {
    "h": 269.348,
    "s": 61.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.35152,
    "c": 0.14682,
    "h": 301.4
  },
  "luminance": 0.03715
}

Semantic roles & 50–950 ramp

primary
#4A1D79
secondary
#7AAD45
accent
#E44396
background
#F8F5FA
surface
#EFE9F3
border
#CAC5CD
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4A1D79

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

Preview Lab → · Contrast checker → · Palette generator →

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