#4A147D#4A147D

#4A147D is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.6% C 0.161 H 301.2°. Best body text is #FFFFFF at 12.45:1 contrast (WCAG AA passes).

Color values

HEX#4A147D
RGBrgb(74, 20, 125)
HSLhsl(271, 72%, 28%)
HSVhsv(271, 84%, 49%)
CMYKcmyk(40.8%, 84%, 0%, 51%)
CIE-LABlab(21.71, 44.75, -48.10)
CIE-LCHlch(21.71, 65.70, 312.93°)
OKLaboklab(34.57% 0.0834 -0.1375)
OKLCHoklch(34.57% 0.161 301.2)
XYZxyz(6.7750, 3.4368, 19.7045)
Luminance0.0344 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A147D #477D14
analogous
#15147D #4A147D #7D147B
triadic
#4A147D #7D4A14 #147D4A
tetradic
#4A147D #7D1514 #477D14 #147B7D
square
#4A147D #7D1514 #477D14 #147B7D
split-complementary
#4A147D #7B7D14 #147D15
monochromatic
#10041A #2B0C48 #4A147D #691CB2 #882EDE

Accessibility & contrast

On white

12.45
#4A147D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4A147D
12.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A147D#FFFFFF#000000##FFFFFF
##4A147D1.0012.451.6912.45
#FFFFFF12.451.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003380
Deuteranopia (green-blind)
#00337B
Tritanopia (blue-blind)
#3E3249
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #4a147d;
/* rgb */ color: rgb(74, 20, 125);
/* oklch */ color: oklch(34.6% 0.161 301.2);
Tailwind
colors: {
  custom: {
    50: '#825aa4',
    500: '#4a147d',
    950: '#000000',
  },
}
SCSS
$custom: #4a147d;
$custom-light: #825aa4;
$custom-dark: #000000;
JSON
{
  "hex": "#4a147d",
  "rgb": {
    "r": 74,
    "g": 20,
    "b": 125
  },
  "hsl": {
    "h": 270.857,
    "s": 72.414,
    "l": 28.431
  },
  "oklch": {
    "l": 0.34568,
    "c": 0.16081,
    "h": 301.2
  },
  "luminance": 0.03437
}

Semantic roles & 50–950 ramp

primary
#4A147D
secondary
#75B23A
accent
#EF3991
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4A147D

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

Preview Lab → · Contrast checker → · Palette generator →

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