#4B1574#4B1574

#4B1574 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.0% C 0.151 H 305.2°. Best body text is #FFFFFF at 12.66:1 contrast (WCAG AA passes).

Color values

HEX#4B1574
RGBrgb(75, 21, 116)
HSLhsl(274, 69%, 27%)
HSVhsv(274, 82%, 45%)
CMYKcmyk(35.3%, 81.9%, 0%, 54.5%)
CIE-LABlab(21.18, 42.31, -43.21)
CIE-LCHlch(21.18, 60.48, 314.40°)
OKLaboklab(33.98% 0.0869 -0.1231)
OKLCHoklch(33.98% 0.151 305.2)
XYZxyz(6.3215, 3.2932, 16.8222)
Luminance0.0329 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B1574 #3E7415
analogous
#1B1574 #4B1574 #74156E
triadic
#4B1574 #744B15 #15744B
tetradic
#4B1574 #741B15 #3E7415 #156E74
square
#4B1574 #741B15 #3E7415 #156E74
split-complementary
#4B1574 #6E7415 #15741B
monochromatic
#11051A #290C40 #4B1574 #6D1EA8 #8E2BD9

Accessibility & contrast

On white

12.66
#4B1574 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#4B1574 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B1574
12.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B1574#FFFFFF#000000##FFFFFF
##4B15741.0012.661.6612.66
#FFFFFF12.661.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003177
Deuteranopia (green-blind)
#003372
Tritanopia (blue-blind)
#432E44
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #4b1574;
/* rgb */ color: rgb(75, 21, 116);
/* oklch */ color: oklch(34.0% 0.151 305.2);
Tailwind
colors: {
  custom: {
    50: '#825a9d',
    500: '#4b1574',
    950: '#000000',
  },
}
SCSS
$custom: #4b1574;
$custom-light: #825a9d;
$custom-dark: #000000;
JSON
{
  "hex": "#4b1574",
  "rgb": {
    "r": 75,
    "g": 21,
    "b": 116
  },
  "hsl": {
    "h": 274.105,
    "s": 69.343,
    "l": 26.863
  },
  "oklch": {
    "l": 0.33977,
    "c": 0.15067,
    "h": 305.2
  },
  "luminance": 0.03293
}

Semantic roles & 50–950 ramp

primary
#4B1574
secondary
#6BAA3B
accent
#EC3C88
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4B1574

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

Preview Lab → · Contrast checker → · Palette generator →

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