#4B147E#4B147E

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

Color values

HEX#4B147E
RGBrgb(75, 20, 126)
HSLhsl(271, 73%, 29%)
HSVhsv(271, 84%, 49%)
CMYKcmyk(40.5%, 84.1%, 0%, 50.6%)
CIE-LABlab(21.95, 45.16, -48.34)
CIE-LCHlch(21.95, 66.15, 313.05°)
OKLaboklab(34.79% 0.0846 -0.1381)
OKLCHoklch(34.79% 0.162 301.5)
XYZxyz(6.9168, 3.5025, 20.0463)
Luminance0.0350 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B147E #477E14
analogous
#16147E #4B147E #7E147C
triadic
#4B147E #7E4B14 #147E4B
tetradic
#4B147E #7E1614 #477E14 #147C7E
square
#4B147E #7E1614 #477E14 #147C7E
split-complementary
#4B147E #7C7E14 #147E16
monochromatic
#10041A #2C0C49 #4B147E #6A1CB3 #8A2EDE

Accessibility & contrast

On white

12.35
#4B147E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4B147E
12.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B147E#FFFFFF#000000##FFFFFF
##4B147E1.0012.351.7012.35
#FFFFFF12.351.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003481
Deuteranopia (green-blind)
#00347C
Tritanopia (blue-blind)
#40324A
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4b147e;
/* rgb */ color: rgb(75, 20, 126);
/* oklch */ color: oklch(34.8% 0.162 301.5);
Tailwind
colors: {
  custom: {
    50: '#835aa4',
    500: '#4b147e',
    950: '#000000',
  },
}
SCSS
$custom: #4b147e;
$custom-light: #835aa4;
$custom-dark: #000000;
JSON
{
  "hex": "#4b147e",
  "rgb": {
    "r": 75,
    "g": 20,
    "b": 126
  },
  "hsl": {
    "h": 271.132,
    "s": 72.603,
    "l": 28.627
  },
  "oklch": {
    "l": 0.34793,
    "c": 0.16202,
    "h": 301.5
  },
  "luminance": 0.03503
}

Semantic roles & 50–950 ramp

primary
#4B147E
secondary
#75B33A
accent
#EF3890
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4B147E

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

Preview Lab → · Contrast checker → · Palette generator →

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