#4B1572#4B1572

#4B1572 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.8% C 0.149 H 306.0°. Best body text is #FFFFFF at 12.73:1 contrast (WCAG AA passes).

Color values

HEX#4B1572
RGBrgb(75, 21, 114)
HSLhsl(275, 69%, 26%)
HSVhsv(275, 82%, 45%)
CMYKcmyk(34.2%, 81.6%, 0%, 55.3%)
CIE-LABlab(21.01, 41.83, -42.21)
CIE-LCHlch(21.01, 59.42, 314.74°)
OKLaboklab(33.8% 0.0874 -0.1201)
OKLCHoklch(33.8% 0.149 306)
XYZxyz(6.2064, 3.2471, 16.2161)
Luminance0.0325 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B1572 #3C7215
analogous
#1D1572 #4B1572 #72156B
triadic
#4B1572 #724B15 #15724B
tetradic
#4B1572 #721D15 #3C7215 #156B72
square
#4B1572 #721D15 #3C7215 #156B72
split-complementary
#4B1572 #6B7215 #15721D
monochromatic
#11051A #290B3E #4B1572 #6D1FA6 #8F2AD8

Accessibility & contrast

On white

12.73
#4B1572 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#4B1572 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B1572
12.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B1572#FFFFFF#000000##FFFFFF
##4B15721.0012.731.6512.73
#FFFFFF12.731.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003175
Deuteranopia (green-blind)
#003370
Tritanopia (blue-blind)
#442D43
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #4b1572;
/* rgb */ color: rgb(75, 21, 114);
/* oklch */ color: oklch(33.8% 0.149 306.0);
Tailwind
colors: {
  custom: {
    50: '#82599b',
    500: '#4b1572',
    950: '#000000',
  },
}
SCSS
$custom: #4b1572;
$custom-light: #82599b;
$custom-dark: #000000;
JSON
{
  "hex": "#4b1572",
  "rgb": {
    "r": 75,
    "g": 21,
    "b": 114
  },
  "hsl": {
    "h": 274.839,
    "s": 68.889,
    "l": 26.471
  },
  "oklch": {
    "l": 0.33801,
    "c": 0.14859,
    "h": 306
  },
  "luminance": 0.03247
}

Semantic roles & 50–950 ramp

primary
#4B1572
secondary
#69A83B
accent
#EC3C86
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4B1572

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

Preview Lab → · Contrast checker → · Palette generator →

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