#4C1262#4C1262

#4C1262 is a dark, vivid purple. Relative luminance 0.029; OKLCH L 32.3% C 0.136 H 314.5°. Best body text is #FFFFFF at 13.37:1 contrast (WCAG AA passes).

Color values

HEX#4C1262
RGBrgb(76, 18, 98)
HSLhsl(284, 69%, 23%)
HSVhsv(284, 82%, 38%)
CMYKcmyk(22.4%, 81.6%, 0%, 61.6%)
CIE-LABlab(19.44, 39.48, -34.30)
CIE-LCHlch(19.44, 52.30, 319.01°)
OKLaboklab(32.32% 0.0953 -0.0969)
OKLCHoklch(32.32% 0.136 314.5)
XYZxyz(5.4010, 2.8511, 11.8187)
Luminance0.0285 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1262 #286212
analogous
#241262 #4C1262 #621250
triadic
#4C1262 #624C12 #12624C
tetradic
#4C1262 #622412 #286212 #125062
square
#4C1262 #622412 #286212 #125062
split-complementary
#4C1262 #506212 #126224
monochromatic
#14051A #24092E #4C1262 #741B96 #9C25C9

Accessibility & contrast

On white

13.37
#4C1262 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#4C1262 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C1262
13.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1262#FFFFFF#000000##FFFFFF
##4C12621.0013.371.5713.37
#FFFFFF13.371.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C64
Deuteranopia (green-blind)
#0D3060
Tritanopia (blue-blind)
#4A243A
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #4c1262;
/* rgb */ color: rgb(76, 18, 98);
/* oklch */ color: oklch(32.3% 0.136 314.5);
Tailwind
colors: {
  custom: {
    50: '#81578f',
    500: '#4c1262',
    950: '#000000',
  },
}
SCSS
$custom: #4c1262;
$custom-light: #81578f;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1262",
  "rgb": {
    "r": 76,
    "g": 18,
    "b": 98
  },
  "hsl": {
    "h": 283.5,
    "s": 68.966,
    "l": 22.745
  },
  "oklch": {
    "l": 0.32317,
    "c": 0.13591,
    "h": 314.5
  },
  "luminance": 0.02851
}

Semantic roles & 50–950 ramp

primary
#4C1262
secondary
#519A36
accent
#EC3C6C
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B030C
muted
#7C787D

Preview Lab

Preview with #4C1262

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

Preview Lab → · Contrast checker → · Palette generator →

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