#4B147D#4B147D

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

Color values

HEX#4B147D
RGBrgb(75, 20, 125)
HSLhsl(271, 72%, 28%)
HSVhsv(271, 84%, 49%)
CMYKcmyk(40%, 84%, 0%, 51%)
CIE-LABlab(21.86, 44.91, -47.86)
CIE-LCHlch(21.86, 65.63, 313.18°)
OKLaboklab(34.7% 0.085 -0.1367)
OKLCHoklch(34.7% 0.161 301.9)
XYZxyz(6.8526, 3.4768, 19.7081)
Luminance0.0348 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B147D #467D14
analogous
#17147D #4B147D #7D147A
triadic
#4B147D #7D4B14 #147D4B
tetradic
#4B147D #7D1714 #467D14 #147A7D
square
#4B147D #7D1714 #467D14 #147A7D
split-complementary
#4B147D #7A7D14 #147D17
monochromatic
#10041A #2B0C48 #4B147D #6B1CB2 #8A2EDE

Accessibility & contrast

On white

12.39
#4B147D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4B147D
12.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B147D#FFFFFF#000000##FFFFFF
##4B147D1.0012.391.7012.39
#FFFFFF12.391.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003480
Deuteranopia (green-blind)
#00347B
Tritanopia (blue-blind)
#403149
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #4b147d;
/* rgb */ color: rgb(75, 20, 125);
/* oklch */ color: oklch(34.7% 0.161 301.9);
Tailwind
colors: {
  custom: {
    50: '#835aa4',
    500: '#4b147d',
    950: '#000000',
  },
}
SCSS
$custom: #4b147d;
$custom-light: #835aa4;
$custom-dark: #000000;
JSON
{
  "hex": "#4b147d",
  "rgb": {
    "r": 75,
    "g": 20,
    "b": 125
  },
  "hsl": {
    "h": 271.429,
    "s": 72.414,
    "l": 28.431
  },
  "oklch": {
    "l": 0.347,
    "c": 0.16098,
    "h": 301.9
  },
  "luminance": 0.03477
}

Semantic roles & 50–950 ramp

primary
#4B147D
secondary
#74B23A
accent
#EF3990
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4B147D

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

Preview Lab → · Contrast checker → · Palette generator →

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