#4A147B#4A147B

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

Color values

HEX#4A147B
RGBrgb(74, 20, 123)
HSLhsl(271, 72%, 28%)
HSVhsv(271, 84%, 48%)
CMYKcmyk(39.8%, 83.7%, 0%, 51.8%)
CIE-LABlab(21.53, 44.25, -47.13)
CIE-LCHlch(21.53, 64.65, 313.20°)
OKLaboklab(34.38% 0.0841 -0.1346)
OKLCHoklch(34.38% 0.159 302)
XYZxyz(6.6485, 3.3862, 19.0384)
Luminance0.0339 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A147B #457B14
analogous
#16147B #4A147B #7B1478
triadic
#4A147B #7B4A14 #147B4A
tetradic
#4A147B #7B1614 #457B14 #14787B
square
#4A147B #7B1614 #457B14 #14787B
split-complementary
#4A147B #787B14 #147B16
monochromatic
#10041A #2A0B46 #4A147B #6A1DB0 #892DDD

Accessibility & contrast

On white

12.52
#4A147B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4A147B
12.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A147B#FFFFFF#000000##FFFFFF
##4A147B1.0012.521.6812.52
#FFFFFF12.521.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337E
Deuteranopia (green-blind)
#003379
Tritanopia (blue-blind)
#3F3148
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #4a147b;
/* rgb */ color: rgb(74, 20, 123);
/* oklch */ color: oklch(34.4% 0.159 302.0);
Tailwind
colors: {
  custom: {
    50: '#8259a2',
    500: '#4a147b',
    950: '#000000',
  },
}
SCSS
$custom: #4a147b;
$custom-light: #8259a2;
$custom-dark: #000000;
JSON
{
  "hex": "#4a147b",
  "rgb": {
    "r": 74,
    "g": 20,
    "b": 123
  },
  "hsl": {
    "h": 271.456,
    "s": 72.028,
    "l": 28.039
  },
  "oklch": {
    "l": 0.34382,
    "c": 0.15873,
    "h": 302
  },
  "luminance": 0.03386
}

Semantic roles & 50–950 ramp

primary
#4A147B
secondary
#73B13A
accent
#EF398F
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4A147B

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

Preview Lab → · Contrast checker → · Palette generator →

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