#4A147F#4A147F

#4A147F is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.8% C 0.163 H 300.5°. Best body text is #FFFFFF at 12.37:1 contrast (WCAG AA passes).

Color values

HEX#4A147F
RGBrgb(74, 20, 127)
HSLhsl(270, 73%, 29%)
HSVhsv(270, 84%, 50%)
CMYKcmyk(41.7%, 84.3%, 0%, 50.2%)
CIE-LABlab(21.90, 45.25, -49.06)
CIE-LCHlch(21.90, 66.74, 312.68°)
OKLaboklab(34.76% 0.0827 -0.1403)
OKLCHoklch(34.76% 0.163 300.5)
XYZxyz(6.9040, 3.4884, 20.3842)
Luminance0.0349 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A147F #497F14
analogous
#14147F #4A147F #7F147F
triadic
#4A147F #7F4A14 #147F4A
tetradic
#4A147F #7F1414 #497F14 #147F7F
square
#4A147F #7F1414 #497F14 #147F7F
split-complementary
#4A147F #7F7F14 #147F14
monochromatic
#0F041A #2B0C4A #4A147F #691CB4 #882FDE

Accessibility & contrast

On white

12.37
#4A147F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#4A147F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A147F
12.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A147F#FFFFFF#000000##FFFFFF
##4A147F1.0012.371.7012.37
#FFFFFF12.371.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003482
Deuteranopia (green-blind)
#00347D
Tritanopia (blue-blind)
#3E324B
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #4a147f;
/* rgb */ color: rgb(74, 20, 127);
/* oklch */ color: oklch(34.8% 0.163 300.5);
Tailwind
colors: {
  custom: {
    50: '#835aa5',
    500: '#4a147f',
    950: '#000000',
  },
}
SCSS
$custom: #4a147f;
$custom-light: #835aa5;
$custom-dark: #000000;
JSON
{
  "hex": "#4a147f",
  "rgb": {
    "r": 74,
    "g": 20,
    "b": 127
  },
  "hsl": {
    "h": 270.28,
    "s": 72.789,
    "l": 28.824
  },
  "oklch": {
    "l": 0.34756,
    "c": 0.16288,
    "h": 300.5
  },
  "luminance": 0.03488
}

Semantic roles & 50–950 ramp

primary
#4A147F
secondary
#77B43B
accent
#EF3893
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4A147F

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

Preview Lab → · Contrast checker → · Palette generator →

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