#4B1576#4B1576

#4B1576 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.2% C 0.153 H 304.4°. Best body text is #FFFFFF at 12.59:1 contrast (WCAG AA passes).

Color values

HEX#4B1576
RGBrgb(75, 21, 118)
HSLhsl(273, 70%, 27%)
HSVhsv(273, 82%, 46%)
CMYKcmyk(36.4%, 82.2%, 0%, 53.7%)
CIE-LABlab(21.36, 42.80, -44.21)
CIE-LCHlch(21.36, 61.53, 314.07°)
OKLaboklab(34.15% 0.0863 -0.126)
OKLCHoklch(34.15% 0.153 304.4)
XYZxyz(6.4391, 3.3402, 17.4415)
Luminance0.0334 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B1576 #407615
analogous
#1B1576 #4B1576 #761571
triadic
#4B1576 #764B15 #15764B
tetradic
#4B1576 #761B15 #407615 #157176
square
#4B1576 #761B15 #407615 #157176
split-complementary
#4B1576 #717615 #15761B
monochromatic
#11051A #2A0C42 #4B1576 #6C1EAA #8D2CD9

Accessibility & contrast

On white

12.59
#4B1576 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#4B1576 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B1576
12.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B1576#FFFFFF#000000##FFFFFF
##4B15761.0012.591.6712.59
#FFFFFF12.591.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003279
Deuteranopia (green-blind)
#003374
Tritanopia (blue-blind)
#432F46
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #4b1576;
/* rgb */ color: rgb(75, 21, 118);
/* oklch */ color: oklch(34.2% 0.153 304.4);
Tailwind
colors: {
  custom: {
    50: '#825a9e',
    500: '#4b1576',
    950: '#000000',
  },
}
SCSS
$custom: #4b1576;
$custom-light: #825a9e;
$custom-dark: #000000;
JSON
{
  "hex": "#4b1576",
  "rgb": {
    "r": 75,
    "g": 21,
    "b": 118
  },
  "hsl": {
    "h": 273.402,
    "s": 69.784,
    "l": 27.255
  },
  "oklch": {
    "l": 0.34154,
    "c": 0.15275,
    "h": 304.4
  },
  "luminance": 0.0334
}

Semantic roles & 50–950 ramp

primary
#4B1576
secondary
#6DAC3B
accent
#ED3B8A
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4B1576

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

Preview Lab → · Contrast checker → · Palette generator →

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