#4A1252#4A1252

#4A1252 is a dark, moderate purple. Relative luminance 0.025; OKLCH L 30.8% C 0.119 H 322.4°. Best body text is #FFFFFF at 14.00:1 contrast (WCAG AA passes).

Color values

HEX#4A1252
RGBrgb(74, 18, 82)
HSLhsl(293, 64%, 20%)
HSVhsv(293, 78%, 32%)
CMYKcmyk(9.8%, 78%, 0%, 67.8%)
CIE-LABlab(17.91, 35.56, -26.07)
CIE-LCHlch(17.91, 44.10, 323.75°)
OKLaboklab(30.79% 0.0945 -0.0728)
OKLCHoklch(30.79% 0.119 322.4)
XYZxyz(4.5632, 2.4979, 8.2228)
Luminance0.0250 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1252 #1A5212
analogous
#2A1252 #4A1252 #52123A
triadic
#4A1252 #524A12 #12524A
tetradic
#4A1252 #522A12 #1A5212 #123A52
square
#4A1252 #522A12 #1A5212 #123A52
split-complementary
#4A1252 #3A5212 #12522A
monochromatic
#170619 #1D0720 #4A1252 #771D84 #A528B6

Accessibility & contrast

On white

14.00
#4A1252 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#4A1252 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A1252
14.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1252#FFFFFF#000000##FFFFFF
##4A12521.0014.001.5014.00
#FFFFFF14.001.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002854
Deuteranopia (green-blind)
#1B2E50
Tritanopia (blue-blind)
#4B1E31
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #4a1252;
/* rgb */ color: rgb(74, 18, 82);
/* oklch */ color: oklch(30.8% 0.119 322.4);
Tailwind
colors: {
  custom: {
    50: '#7f5683',
    500: '#4a1252',
    950: '#000000',
  },
}
SCSS
$custom: #4a1252;
$custom-light: #7f5683;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1252",
  "rgb": {
    "r": 74,
    "g": 18,
    "b": 82
  },
  "hsl": {
    "h": 292.5,
    "s": 64,
    "l": 19.608
  },
  "oklch": {
    "l": 0.30786,
    "c": 0.11933,
    "h": 322.4
  },
  "luminance": 0.02498
}

Semantic roles & 50–950 ramp

primary
#4A1252
secondary
#408B35
accent
#E74156
background
#F7F5F8
surface
#EEE9EF
border
#C9C5CA
text
#0A030A
muted
#7C787C

Preview Lab

Preview with #4A1252

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

Preview Lab → · Contrast checker → · Palette generator →

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