#4C155F#4C155F

#4C155F is a dark, vivid purple. Relative luminance 0.029; OKLCH L 32.4% C 0.129 H 315.8°. Best body text is #FFFFFF at 13.29:1 contrast (WCAG AA passes).

Color values

HEX#4C155F
RGBrgb(76, 21, 95)
HSLhsl(285, 64%, 23%)
HSVhsv(285, 78%, 37%)
CMYKcmyk(20%, 77.9%, 0%, 62.7%)
CIE-LABlab(19.64, 37.59, -32.00)
CIE-LCHlch(19.64, 49.36, 319.59°)
OKLaboklab(32.38% 0.0927 -0.0901)
OKLCHoklch(32.38% 0.129 315.8)
XYZxyz(5.3139, 2.8993, 11.1040)
Luminance0.0290 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C155F #285F15
analogous
#27155F #4C155F #5F154D
triadic
#4C155F #5F4C15 #155F4C
tetradic
#4C155F #5F2715 #285F15 #154D5F
square
#4C155F #5F2715 #285F15 #154D5F
split-complementary
#4C155F #4D5F15 #155F27
monochromatic
#140619 #240A2D #4C155F #742091 #9C2BC3

Accessibility & contrast

On white

13.29
#4C155F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C155F
13.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C155F#FFFFFF#000000##FFFFFF
##4C155F1.0013.291.5813.29
#FFFFFF13.291.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C61
Deuteranopia (green-blind)
#14315D
Tritanopia (blue-blind)
#4B2539
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #4c155f;
/* rgb */ color: rgb(76, 21, 95);
/* oklch */ color: oklch(32.4% 0.129 315.8);
Tailwind
colors: {
  custom: {
    50: '#81598d',
    500: '#4c155f',
    950: '#000000',
  },
}
SCSS
$custom: #4c155f;
$custom-light: #81598d;
$custom-dark: #000000;
JSON
{
  "hex": "#4c155f",
  "rgb": {
    "r": 76,
    "g": 21,
    "b": 95
  },
  "hsl": {
    "h": 284.595,
    "s": 63.793,
    "l": 22.745
  },
  "oklch": {
    "l": 0.32384,
    "c": 0.1293,
    "h": 315.8
  },
  "luminance": 0.02899
}

Semantic roles & 50–950 ramp

primary
#4C155F
secondary
#51963A
accent
#E7416C
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #4C155F

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

Preview Lab → · Contrast checker → · Palette generator →

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