#4A147E#4A147E

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

Color values

HEX#4A147E
RGBrgb(74, 20, 126)
HSLhsl(271, 73%, 29%)
HSVhsv(271, 84%, 49%)
CMYKcmyk(41.3%, 84.1%, 0%, 50.6%)
CIE-LABlab(21.81, 45.00, -48.58)
CIE-LCHlch(21.81, 66.22, 312.81°)
OKLaboklab(34.66% 0.0831 -0.1389)
OKLCHoklch(34.66% 0.162 300.9)
XYZxyz(6.8392, 3.4625, 20.0426)
Luminance0.0346 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A147E #487E14
analogous
#15147E #4A147E #7E147D
triadic
#4A147E #7E4A14 #147E4A
tetradic
#4A147E #7E1514 #487E14 #147D7E
square
#4A147E #7E1514 #487E14 #147D7E
split-complementary
#4A147E #7D7E14 #147E15
monochromatic
#10041A #2B0C49 #4A147E #691CB3 #882EDE

Accessibility & contrast

On white

12.41
#4A147E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#4A147E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A147E
12.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A147E#FFFFFF#000000##FFFFFF
##4A147E1.0012.411.6912.41
#FFFFFF12.411.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003481
Deuteranopia (green-blind)
#00347C
Tritanopia (blue-blind)
#3E324A
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #4a147e;
/* rgb */ color: rgb(74, 20, 126);
/* oklch */ color: oklch(34.7% 0.162 300.9);
Tailwind
colors: {
  custom: {
    50: '#825aa4',
    500: '#4a147e',
    950: '#000000',
  },
}
SCSS
$custom: #4a147e;
$custom-light: #825aa4;
$custom-dark: #000000;
JSON
{
  "hex": "#4a147e",
  "rgb": {
    "r": 74,
    "g": 20,
    "b": 126
  },
  "hsl": {
    "h": 270.566,
    "s": 72.603,
    "l": 28.627
  },
  "oklch": {
    "l": 0.34661,
    "c": 0.16184,
    "h": 300.9
  },
  "luminance": 0.03463
}

Semantic roles & 50–950 ramp

primary
#4A147E
secondary
#76B33A
accent
#EF3892
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4A147E

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

Preview Lab → · Contrast checker → · Palette generator →

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