#4B1479#4B1479

#4B1479 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.3% C 0.157 H 303.4°. Best body text is #FFFFFF at 12.53:1 contrast (WCAG AA passes).

Color values

HEX#4B1479
RGBrgb(75, 20, 121)
HSLhsl(273, 72%, 28%)
HSVhsv(273, 83%, 47%)
CMYKcmyk(38%, 83.5%, 0%, 52.5%)
CIE-LABlab(21.49, 43.93, -45.91)
CIE-LCHlch(21.49, 63.54, 313.74°)
OKLaboklab(34.33% 0.0862 -0.131)
OKLCHoklch(34.33% 0.157 303.4)
XYZxyz(6.6022, 3.3766, 18.3894)
Luminance0.0338 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B1479 #427914
analogous
#181479 #4B1479 #791475
triadic
#4B1479 #794B14 #14794B
tetradic
#4B1479 #791814 #427914 #147579
square
#4B1479 #791814 #427914 #147579
split-complementary
#4B1479 #757914 #147918
monochromatic
#10041A #2A0B44 #4B1479 #6C1DAE #8C2BDC

Accessibility & contrast

On white

12.53
#4B1479 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4B1479
12.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B1479#FFFFFF#000000##FFFFFF
##4B14791.0012.531.6812.53
#FFFFFF12.531.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337C
Deuteranopia (green-blind)
#003377
Tritanopia (blue-blind)
#413047
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #4b1479;
/* rgb */ color: rgb(75, 20, 121);
/* oklch */ color: oklch(34.3% 0.157 303.4);
Tailwind
colors: {
  custom: {
    50: '#8359a1',
    500: '#4b1479',
    950: '#000000',
  },
}
SCSS
$custom: #4b1479;
$custom-light: #8359a1;
$custom-dark: #000000;
JSON
{
  "hex": "#4b1479",
  "rgb": {
    "r": 75,
    "g": 20,
    "b": 121
  },
  "hsl": {
    "h": 272.673,
    "s": 71.631,
    "l": 27.647
  },
  "oklch": {
    "l": 0.34332,
    "c": 0.15685,
    "h": 303.4
  },
  "luminance": 0.03377
}

Semantic roles & 50–950 ramp

primary
#4B1479
secondary
#6FAF3A
accent
#EE398C
background
#F8F5FA
surface
#EFE9F3
border
#CAC5CD
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4B1479

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

Preview Lab → · Contrast checker → · Palette generator →

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