#4A1152#4A1152

#4A1152 is a dark, vivid purple. Relative luminance 0.025; OKLCH L 30.7% C 0.121 H 322.5°. Best body text is #FFFFFF at 14.06:1 contrast (WCAG AA passes).

Color values

HEX#4A1152
RGBrgb(74, 17, 82)
HSLhsl(293, 66%, 19%)
HSVhsv(293, 79%, 32%)
CMYKcmyk(9.8%, 79.3%, 0%, 67.8%)
CIE-LABlab(17.77, 35.97, -26.30)
CIE-LCHlch(17.77, 44.56, 323.83°)
OKLaboklab(30.68% 0.0957 -0.0735)
OKLCHoklch(30.68% 0.121 322.5)
XYZxyz(4.5473, 2.4662, 8.2175)
Luminance0.0247 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1152 #195211
analogous
#2A1152 #4A1152 #52113A
triadic
#4A1152 #524A11 #11524A
tetradic
#4A1152 #522A11 #195211 #113A52
square
#4A1152 #522A11 #195211 #113A52
split-complementary
#4A1152 #3A5211 #11522A
monochromatic
#170519 #1C061F #4A1152 #781C85 #A526B7

Accessibility & contrast

On white

14.06
#4A1152 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#4A1152 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A1152
14.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1152#FFFFFF#000000##FFFFFF
##4A11521.0014.061.4914.06
#FFFFFF14.061.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002754
Deuteranopia (green-blind)
#1B2E50
Tritanopia (blue-blind)
#4B1D30
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #4a1152;
/* rgb */ color: rgb(74, 17, 82);
/* oklch */ color: oklch(30.7% 0.121 322.5);
Tailwind
colors: {
  custom: {
    50: '#7f5683',
    500: '#4a1152',
    950: '#000000',
  },
}
SCSS
$custom: #4a1152;
$custom-light: #7f5683;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1152",
  "rgb": {
    "r": 74,
    "g": 17,
    "b": 82
  },
  "hsl": {
    "h": 292.615,
    "s": 65.657,
    "l": 19.412
  },
  "oklch": {
    "l": 0.30684,
    "c": 0.12062,
    "h": 322.5
  },
  "luminance": 0.02466
}

Semantic roles & 50–950 ramp

primary
#4A1152
secondary
#3E8B34
accent
#E93F54
background
#F7F5F8
surface
#EEE9EF
border
#C9C5CA
text
#0A030A
muted
#7C787C

Preview Lab

Preview with #4A1152

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

Preview Lab → · Contrast checker → · Palette generator →

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