#4C1255#4C1255

#4C1255 is a dark, vivid purple. Relative luminance 0.026; OKLCH L 31.3% C 0.123 H 321.9°. Best body text is #FFFFFF at 13.77:1 contrast (WCAG AA passes).

Color values

HEX#4C1255
RGBrgb(76, 18, 85)
HSLhsl(292, 65%, 20%)
HSVhsv(292, 79%, 33%)
CMYKcmyk(10.6%, 78.8%, 0%, 66.7%)
CIE-LABlab(18.48, 36.68, -27.18)
CIE-LCHlch(18.48, 45.65, 323.46°)
OKLaboklab(31.33% 0.097 -0.076)
OKLCHoklch(31.33% 0.123 321.9)
XYZxyz(4.8363, 2.6253, 8.8446)
Luminance0.0262 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1255 #1B5512
analogous
#2A1255 #4C1255 #55123D
triadic
#4C1255 #554C12 #12554C
tetradic
#4C1255 #552A12 #1B5512 #123D55
square
#4C1255 #552A12 #1B5512 #123D55
split-complementary
#4C1255 #3D5512 #12552A
monochromatic
#170519 #1F0722 #4C1255 #791D88 #A627BA

Accessibility & contrast

On white

13.77
#4C1255 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C1255
13.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1255#FFFFFF#000000##FFFFFF
##4C12551.0013.771.5313.77
#FFFFFF13.771.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002957
Deuteranopia (green-blind)
#1B2F53
Tritanopia (blue-blind)
#4D1F32
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #4c1255;
/* rgb */ color: rgb(76, 18, 85);
/* oklch */ color: oklch(31.3% 0.123 321.9);
Tailwind
colors: {
  custom: {
    50: '#815785',
    500: '#4c1255',
    950: '#000000',
  },
}
SCSS
$custom: #4c1255;
$custom-light: #815785;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1255",
  "rgb": {
    "r": 76,
    "g": 18,
    "b": 85
  },
  "hsl": {
    "h": 291.94,
    "s": 65.049,
    "l": 20.196
  },
  "oklch": {
    "l": 0.31328,
    "c": 0.12322,
    "h": 321.9
  },
  "luminance": 0.02625
}

Semantic roles & 50–950 ramp

primary
#4C1255
secondary
#418E35
accent
#E84056
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B030B
muted
#7C787C

Preview Lab

Preview with #4C1255

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

Preview Lab → · Contrast checker → · Palette generator →

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