#4C155D#4C155D

#4C155D is a dark, vivid purple. Relative luminance 0.029; OKLCH L 32.2% C 0.127 H 316.9°. Best body text is #FFFFFF at 13.35:1 contrast (WCAG AA passes).

Color values

HEX#4C155D
RGBrgb(76, 21, 93)
HSLhsl(286, 63%, 22%)
HSVhsv(286, 77%, 36%)
CMYKcmyk(18.3%, 77.4%, 0%, 63.5%)
CIE-LABlab(19.49, 37.14, -30.91)
CIE-LCHlch(19.49, 48.32, 320.23°)
OKLaboklab(32.23% 0.093 -0.0869)
OKLCHoklch(32.23% 0.127 316.9)
XYZxyz(5.2241, 2.8634, 10.6313)
Luminance0.0286 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C155D #265D15
analogous
#28155D #4C155D #5D154A
triadic
#4C155D #5D4C15 #155D4C
tetradic
#4C155D #5D2815 #265D15 #154A5D
square
#4C155D #5D2815 #265D15 #154A5D
split-complementary
#4C155D #4A5D15 #155D28
monochromatic
#140619 #230A2B #4C155D #75208F #9E2CC1

Accessibility & contrast

On white

13.35
#4C155D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C155D
13.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C155D#FFFFFF#000000##FFFFFF
##4C155D1.0013.351.5713.35
#FFFFFF13.351.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C5F
Deuteranopia (green-blind)
#16315B
Tritanopia (blue-blind)
#4B2437
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #4c155d;
/* rgb */ color: rgb(76, 21, 93);
/* oklch */ color: oklch(32.2% 0.127 316.9);
Tailwind
colors: {
  custom: {
    50: '#81588b',
    500: '#4c155d',
    950: '#000000',
  },
}
SCSS
$custom: #4c155d;
$custom-light: #81588b;
$custom-dark: #000000;
JSON
{
  "hex": "#4c155d",
  "rgb": {
    "r": 76,
    "g": 21,
    "b": 93
  },
  "hsl": {
    "h": 285.833,
    "s": 63.158,
    "l": 22.353
  },
  "oklch": {
    "l": 0.32232,
    "c": 0.12727,
    "h": 316.9
  },
  "luminance": 0.02863
}

Semantic roles & 50–950 ramp

primary
#4C155D
secondary
#4F9439
accent
#E64268
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #4C155D

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

Preview Lab → · Contrast checker → · Palette generator →

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