#4A1979#4A1979

#4A1979 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.7% C 0.151 H 302.0°. Best body text is #FFFFFF at 12.31:1 contrast (WCAG AA passes).

Color values

HEX#4A1979
RGBrgb(74, 25, 121)
HSLhsl(271, 66%, 29%)
HSVhsv(271, 79%, 47%)
CMYKcmyk(38.8%, 79.3%, 0%, 52.5%)
CIE-LABlab(22.06, 41.70, -44.99)
CIE-LCHlch(22.06, 61.34, 312.82°)
OKLaboklab(34.7% 0.0804 -0.1284)
OKLCHoklch(34.7% 0.151 302)
XYZxyz(6.6220, 3.5316, 18.4182)
Luminance0.0353 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1979 #487919
analogous
#1A1979 #4A1979 #791978
triadic
#4A1979 #794A19 #19794A
tetradic
#4A1979 #791A19 #487919 #197879
square
#4A1979 #791A19 #487919 #197879
split-complementary
#4A1979 #787919 #19791A
monochromatic
#100519 #2B0F46 #4A1979 #6923AC #8837D6

Accessibility & contrast

On white

12.31
#4A1979 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#4A1979 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A1979
12.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1979#FFFFFF#000000##FFFFFF
##4A19791.0012.311.7112.31
#FFFFFF12.311.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347C
Deuteranopia (green-blind)
#003477
Tritanopia (blue-blind)
#403248
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4a1979;
/* rgb */ color: rgb(74, 25, 121);
/* oklch */ color: oklch(34.7% 0.151 302.0);
Tailwind
colors: {
  custom: {
    50: '#825ca0',
    500: '#4a1979',
    950: '#000000',
  },
}
SCSS
$custom: #4a1979;
$custom-light: #825ca0;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1979",
  "rgb": {
    "r": 74,
    "g": 25,
    "b": 121
  },
  "hsl": {
    "h": 270.625,
    "s": 65.753,
    "l": 28.627
  },
  "oklch": {
    "l": 0.34695,
    "c": 0.15147,
    "h": 302
  },
  "luminance": 0.03532
}

Semantic roles & 50–950 ramp

primary
#4A1979
secondary
#76AE40
accent
#E93F92
background
#F8F5FA
surface
#EFE9F3
border
#CAC5CD
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4A1979

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

Preview Lab → · Contrast checker → · Palette generator →

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