#4B147A#4B147A

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

Color values

HEX#4B147A
RGBrgb(75, 20, 122)
HSLhsl(272, 72%, 28%)
HSVhsv(272, 84%, 48%)
CMYKcmyk(38.5%, 83.6%, 0%, 52.2%)
CIE-LABlab(21.58, 44.17, -46.40)
CIE-LCHlch(21.58, 64.06, 313.59°)
OKLaboklab(34.42% 0.0859 -0.1325)
OKLCHoklch(34.42% 0.158 303)
XYZxyz(6.6638, 3.4013, 18.7140)
Luminance0.0340 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B147A #437A14
analogous
#18147A #4B147A #7A1476
triadic
#4B147A #7A4B14 #147A4B
tetradic
#4B147A #7A1814 #437A14 #14767A
square
#4B147A #7A1814 #437A14 #14767A
split-complementary
#4B147A #767A14 #147A18
monochromatic
#10041A #2B0B45 #4B147A #6B1DAF #8B2CDC

Accessibility & contrast

On white

12.50
#4B147A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4B147A
12.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B147A#FFFFFF#000000##FFFFFF
##4B147A1.0012.501.6812.50
#FFFFFF12.501.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337D
Deuteranopia (green-blind)
#003378
Tritanopia (blue-blind)
#413048
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #4b147a;
/* rgb */ color: rgb(75, 20, 122);
/* oklch */ color: oklch(34.4% 0.158 303.0);
Tailwind
colors: {
  custom: {
    50: '#835aa1',
    500: '#4b147a',
    950: '#000000',
  },
}
SCSS
$custom: #4b147a;
$custom-light: #835aa1;
$custom-dark: #000000;
JSON
{
  "hex": "#4b147a",
  "rgb": {
    "r": 75,
    "g": 20,
    "b": 122
  },
  "hsl": {
    "h": 272.353,
    "s": 71.831,
    "l": 27.843
  },
  "oklch": {
    "l": 0.34423,
    "c": 0.15788,
    "h": 303
  },
  "luminance": 0.03401
}

Semantic roles & 50–950 ramp

primary
#4B147A
secondary
#70B03A
accent
#EF398D
background
#F8F5FA
surface
#EFE9F3
border
#CAC5CD
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4B147A

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

Preview Lab → · Contrast checker → · Palette generator →

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