#4C1257#4C1257

#4C1257 is a dark, vivid purple. Relative luminance 0.027; OKLCH L 31.5% C 0.125 H 320.7°. Best body text is #FFFFFF at 13.71:1 contrast (WCAG AA passes).

Color values

HEX#4C1257
RGBrgb(76, 18, 87)
HSLhsl(290, 66%, 21%)
HSVhsv(290, 79%, 34%)
CMYKcmyk(12.6%, 79.3%, 0%, 65.9%)
CIE-LABlab(18.62, 37.09, -28.30)
CIE-LCHlch(18.62, 46.66, 322.66°)
OKLaboklab(31.47% 0.0969 -0.0792)
OKLCHoklch(31.47% 0.125 320.7)
XYZxyz(4.9169, 2.6575, 9.2689)
Luminance0.0266 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1257 #1D5712
analogous
#291257 #4C1257 #57123F
triadic
#4C1257 #574C12 #12574C
tetradic
#4C1257 #572912 #1D5712 #123F57
square
#4C1257 #572912 #1D5712 #123F57
split-complementary
#4C1257 #3F5712 #125729
monochromatic
#160519 #200824 #4C1257 #781C8A #A527BC

Accessibility & contrast

On white

13.71
#4C1257 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#4C1257 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C1257
13.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1257#FFFFFF#000000##FFFFFF
##4C12571.0013.711.5313.71
#FFFFFF13.711.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002959
Deuteranopia (green-blind)
#1A2F55
Tritanopia (blue-blind)
#4C1F33
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #4c1257;
/* rgb */ color: rgb(76, 18, 87);
/* oklch */ color: oklch(31.5% 0.125 320.7);
Tailwind
colors: {
  custom: {
    50: '#815787',
    500: '#4c1257',
    950: '#000000',
  },
}
SCSS
$custom: #4c1257;
$custom-light: #815787;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1257",
  "rgb": {
    "r": 76,
    "g": 18,
    "b": 87
  },
  "hsl": {
    "h": 290.435,
    "s": 65.714,
    "l": 20.588
  },
  "oklch": {
    "l": 0.31474,
    "c": 0.12514,
    "h": 320.7
  },
  "luminance": 0.02657
}

Semantic roles & 50–950 ramp

primary
#4C1257
secondary
#449035
accent
#E93F5A
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B030B
muted
#7C787C

Preview Lab

Preview with #4C1257

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

Preview Lab → · Contrast checker → · Palette generator →

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