#4C1252#4C1252

#4C1252 is a dark, vivid purple. Relative luminance 0.026; OKLCH L 31.1% C 0.120 H 323.8°. Best body text is #FFFFFF at 13.86:1 contrast (WCAG AA passes).

Color values

HEX#4C1252
RGBrgb(76, 18, 82)
HSLhsl(294, 64%, 20%)
HSVhsv(294, 78%, 32%)
CMYKcmyk(7.3%, 78%, 0%, 67.8%)
CIE-LABlab(18.27, 36.06, -25.48)
CIE-LCHlch(18.27, 44.15, 324.76°)
OKLaboklab(31.12% 0.0972 -0.071)
OKLCHoklch(31.12% 0.12 323.8)
XYZxyz(4.7197, 2.5786, 8.2301)
Luminance0.0258 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1252 #185212
analogous
#2C1252 #4C1252 #521238
triadic
#4C1252 #524C12 #12524C
tetradic
#4C1252 #522C12 #185212 #123852
square
#4C1252 #522C12 #185212 #123852
split-complementary
#4C1252 #385212 #12522C
monochromatic
#170619 #1D0720 #4C1252 #7B1D84 #A928B6

Accessibility & contrast

On white

13.86
#4C1252 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#4C1252 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C1252
13.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1252#FFFFFF#000000##FFFFFF
##4C12521.0013.861.5213.86
#FFFFFF13.861.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002854
Deuteranopia (green-blind)
#1D2F50
Tritanopia (blue-blind)
#4D1D31
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #4c1252;
/* rgb */ color: rgb(76, 18, 82);
/* oklch */ color: oklch(31.1% 0.120 323.8);
Tailwind
colors: {
  custom: {
    50: '#815783',
    500: '#4c1252',
    950: '#000000',
  },
}
SCSS
$custom: #4c1252;
$custom-light: #815783;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1252",
  "rgb": {
    "r": 76,
    "g": 18,
    "b": 82
  },
  "hsl": {
    "h": 294.375,
    "s": 64,
    "l": 19.608
  },
  "oklch": {
    "l": 0.31116,
    "c": 0.12036,
    "h": 323.8
  },
  "luminance": 0.02578
}

Semantic roles & 50–950 ramp

primary
#4C1252
secondary
#3D8B35
accent
#E74150
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B030A
muted
#7C787C

Preview Lab

Preview with #4C1252

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

Preview Lab → · Contrast checker → · Palette generator →

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