#4A1679#4A1679

#4A1679 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.4% C 0.155 H 302.5°. Best body text is #FFFFFF at 12.49:1 contrast (WCAG AA passes).

Color values

HEX#4A1679
RGBrgb(74, 22, 121)
HSLhsl(272, 69%, 28%)
HSVhsv(272, 82%, 47%)
CMYKcmyk(38.8%, 81.8%, 0%, 52.5%)
CIE-LABlab(21.62, 42.97, -45.71)
CIE-LCHlch(21.62, 62.74, 313.23°)
OKLaboklab(34.39% 0.083 -0.1305)
OKLCHoklch(34.39% 0.155 302.5)
XYZxyz(6.5613, 3.4101, 18.3980)
Luminance0.0341 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1679 #457916
analogous
#181679 #4A1679 #791676
triadic
#4A1679 #794A16 #16794A
tetradic
#4A1679 #791816 #457916 #167679
square
#4A1679 #791816 #457916 #167679
split-complementary
#4A1679 #767916 #167918
monochromatic
#10051A #2A0D45 #4A1679 #6A1FAD #8930D9

Accessibility & contrast

On white

12.49
#4A1679 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#4A1679 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A1679
12.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1679#FFFFFF#000000##FFFFFF
##4A16791.0012.491.6812.49
#FFFFFF12.491.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337C
Deuteranopia (green-blind)
#003377
Tritanopia (blue-blind)
#403148
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #4a1679;
/* rgb */ color: rgb(74, 22, 121);
/* oklch */ color: oklch(34.4% 0.155 302.5);
Tailwind
colors: {
  custom: {
    50: '#825aa1',
    500: '#4a1679',
    950: '#000000',
  },
}
SCSS
$custom: #4a1679;
$custom-light: #825aa1;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1679",
  "rgb": {
    "r": 74,
    "g": 22,
    "b": 121
  },
  "hsl": {
    "h": 271.515,
    "s": 69.231,
    "l": 28.039
  },
  "oklch": {
    "l": 0.34387,
    "c": 0.15467,
    "h": 302.5
  },
  "luminance": 0.0341
}

Semantic roles & 50–950 ramp

primary
#4A1679
secondary
#73AE3D
accent
#EC3C8F
background
#F8F5FA
surface
#EFE9F3
border
#CAC5CD
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4A1679

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

Preview Lab → · Contrast checker → · Palette generator →

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