#4C1259#4C1259

#4C1259 is a dark, vivid purple. Relative luminance 0.027; OKLCH L 31.6% C 0.127 H 319.5°. Best body text is #FFFFFF at 13.65:1 contrast (WCAG AA passes).

Color values

HEX#4C1259
RGBrgb(76, 18, 89)
HSLhsl(289, 66%, 21%)
HSVhsv(289, 80%, 35%)
CMYKcmyk(14.6%, 79.8%, 0%, 65.1%)
CIE-LABlab(18.76, 37.52, -29.41)
CIE-LCHlch(18.76, 47.67, 321.91°)
OKLaboklab(31.62% 0.0967 -0.0825)
OKLCHoklch(31.62% 0.127 319.5)
XYZxyz(4.9997, 2.6906, 9.7052)
Luminance0.0269 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1259 #1F5912
analogous
#281259 #4C1259 #591242
triadic
#4C1259 #594C12 #12594C
tetradic
#4C1259 #592812 #1F5912 #124259
square
#4C1259 #592812 #1F5912 #124259
split-complementary
#4C1259 #425912 #125928
monochromatic
#160519 #210826 #4C1259 #771C8C #A327BF

Accessibility & contrast

On white

13.65
#4C1259 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#4C1259 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C1259
13.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1259#FFFFFF#000000##FFFFFF
##4C12591.0013.651.5413.65
#FFFFFF13.651.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A5B
Deuteranopia (green-blind)
#183057
Tritanopia (blue-blind)
#4C2034
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #4c1259;
/* rgb */ color: rgb(76, 18, 89);
/* oklch */ color: oklch(31.6% 0.127 319.5);
Tailwind
colors: {
  custom: {
    50: '#815788',
    500: '#4c1259',
    950: '#000000',
  },
}
SCSS
$custom: #4c1259;
$custom-light: #815788;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1259",
  "rgb": {
    "r": 76,
    "g": 18,
    "b": 89
  },
  "hsl": {
    "h": 289.014,
    "s": 66.355,
    "l": 20.98
  },
  "oklch": {
    "l": 0.31621,
    "c": 0.12708,
    "h": 319.5
  },
  "luminance": 0.0269
}

Semantic roles & 50–950 ramp

primary
#4C1259
secondary
#469235
accent
#E93F5E
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B030B
muted
#7C787C

Preview Lab

Preview with #4C1259

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

Preview Lab → · Contrast checker → · Palette generator →

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