#4C1264#4C1264

#4C1264 is a dark, vivid purple. Relative luminance 0.029; OKLCH L 32.5% C 0.138 H 313.5°. Best body text is #FFFFFF at 13.31:1 contrast (WCAG AA passes).

Color values

HEX#4C1264
RGBrgb(76, 18, 100)
HSLhsl(282, 69%, 23%)
HSVhsv(282, 82%, 39%)
CMYKcmyk(24%, 82%, 0%, 60.8%)
CIE-LABlab(19.60, 39.93, -35.37)
CIE-LCHlch(19.60, 53.34, 318.46°)
OKLaboklab(32.48% 0.095 -0.1)
OKLCHoklch(32.48% 0.138 313.5)
XYZxyz(5.4966, 2.8894, 12.3223)
Luminance0.0289 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1264 #2A6412
analogous
#231264 #4C1264 #641253
triadic
#4C1264 #644C12 #12644C
tetradic
#4C1264 #642312 #2A6412 #125364
square
#4C1264 #642312 #2A6412 #125364
split-complementary
#4C1264 #536412 #126423
monochromatic
#14051A #250930 #4C1264 #731B98 #9B25CC

Accessibility & contrast

On white

13.31
#4C1264 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#4C1264 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C1264
13.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1264#FFFFFF#000000##FFFFFF
##4C12641.0013.311.5813.31
#FFFFFF13.311.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C66
Deuteranopia (green-blind)
#093162
Tritanopia (blue-blind)
#49253B
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #4c1264;
/* rgb */ color: rgb(76, 18, 100);
/* oklch */ color: oklch(32.5% 0.138 313.5);
Tailwind
colors: {
  custom: {
    50: '#825891',
    500: '#4c1264',
    950: '#000000',
  },
}
SCSS
$custom: #4c1264;
$custom-light: #825891;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1264",
  "rgb": {
    "r": 76,
    "g": 18,
    "b": 100
  },
  "hsl": {
    "h": 282.439,
    "s": 69.492,
    "l": 23.137
  },
  "oklch": {
    "l": 0.32478,
    "c": 0.13789,
    "h": 313.5
  },
  "luminance": 0.02889
}

Semantic roles & 50–950 ramp

primary
#4C1264
secondary
#549C36
accent
#EC3B6F
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B030D
muted
#7C787D

Preview Lab

Preview with #4C1264

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

Preview Lab → · Contrast checker → · Palette generator →

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