#4C155C#4C155C

#4C155C is a dark, vivid purple. Relative luminance 0.028; OKLCH L 32.2% C 0.126 H 317.5°. Best body text is #FFFFFF at 13.38:1 contrast (WCAG AA passes).

Color values

HEX#4C155C
RGBrgb(76, 21, 92)
HSLhsl(286, 63%, 22%)
HSVhsv(286, 77%, 36%)
CMYKcmyk(17.4%, 77.2%, 0%, 63.9%)
CIE-LABlab(19.42, 36.92, -30.36)
CIE-LCHlch(19.42, 47.80, 320.57°)
OKLaboklab(32.16% 0.0931 -0.0853)
OKLCHoklch(32.16% 0.126 317.5)
XYZxyz(5.1801, 2.8458, 10.3996)
Luminance0.0285 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C155C #255C15
analogous
#29155C #4C155C #5C1549
triadic
#4C155C #5C4C15 #155C4C
tetradic
#4C155C #5C2915 #255C15 #15495C
square
#4C155C #5C2915 #255C15 #15495C
split-complementary
#4C155C #495C15 #155C29
monochromatic
#150619 #230A2A #4C155C #75208E #9E2CC0

Accessibility & contrast

On white

13.38
#4C155C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C155C
13.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C155C#FFFFFF#000000##FFFFFF
##4C155C1.0013.381.5713.38
#FFFFFF13.381.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C5E
Deuteranopia (green-blind)
#17315A
Tritanopia (blue-blind)
#4B2337
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #4c155c;
/* rgb */ color: rgb(76, 21, 92);
/* oklch */ color: oklch(32.2% 0.126 317.5);
Tailwind
colors: {
  custom: {
    50: '#81588b',
    500: '#4c155c',
    950: '#000000',
  },
}
SCSS
$custom: #4c155c;
$custom-light: #81588b;
$custom-dark: #000000;
JSON
{
  "hex": "#4c155c",
  "rgb": {
    "r": 76,
    "g": 21,
    "b": 92
  },
  "hsl": {
    "h": 286.479,
    "s": 62.832,
    "l": 22.157
  },
  "oklch": {
    "l": 0.32157,
    "c": 0.12626,
    "h": 317.5
  },
  "luminance": 0.02846
}

Semantic roles & 50–950 ramp

primary
#4C155C
secondary
#4E9339
accent
#E64267
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #4C155C

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

Preview Lab → · Contrast checker → · Palette generator →

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