#4C1246#4C1246

#4C1246 is a dark, moderate purple. Relative luminance 0.024; OKLCH L 30.3% C 0.109 H 332.4°. Best body text is #FFFFFF at 14.17:1 contrast (WCAG AA passes).

Color values

HEX#4C1246
RGBrgb(76, 18, 70)
HSLhsl(306, 62%, 18%)
HSVhsv(306, 76%, 30%)
CMYKcmyk(0%, 76.3%, 7.9%, 70.2%)
CIE-LABlab(17.51, 33.73, -18.46)
CIE-LCHlch(17.51, 38.45, 331.31°)
OKLaboklab(30.33% 0.0969 -0.0507)
OKLCHoklch(30.33% 0.109 332.4)
XYZxyz(4.3023, 2.4117, 6.0321)
Luminance0.0241 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1246 #124C18
analogous
#35124C #4C1246 #4C1229
triadic
#4C1246 #464C12 #12464C
tetradic
#4C1246 #4C3512 #124C18 #12294C
square
#4C1246 #4C3512 #124C18 #12294C
split-complementary
#4C1246 #294C12 #124C35
monochromatic
#190617 #1B0618 #4C1246 #7D1E74 #AF29A1

Accessibility & contrast

On white

14.17
#4C1246 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#4C1246 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C1246
14.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1246#FFFFFF#000000##FFFFFF
##4C12461.0014.171.4814.17
#FFFFFF14.171.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F2647
Deuteranopia (green-blind)
#242E45
Tritanopia (blue-blind)
#50182A
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #4c1246;
/* rgb */ color: rgb(76, 18, 70);
/* oklch */ color: oklch(30.3% 0.109 332.4);
Tailwind
colors: {
  custom: {
    50: '#805679',
    500: '#4c1246',
    950: '#000000',
  },
}
SCSS
$custom: #4c1246;
$custom-light: #805679;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1246",
  "rgb": {
    "r": 76,
    "g": 18,
    "b": 70
  },
  "hsl": {
    "h": 306.207,
    "s": 61.702,
    "l": 18.431
  },
  "oklch": {
    "l": 0.30328,
    "c": 0.10936,
    "h": 332.4
  },
  "luminance": 0.02411
}

Semantic roles & 50–950 ramp

primary
#4C1246
secondary
#35853D
accent
#E55443
background
#F8F5F7
surface
#EFE9ED
border
#CAC5C8
text
#0A0309
muted
#7C787B

Preview Lab

Preview with #4C1246

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

Preview Lab → · Contrast checker → · Palette generator →

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