#4C155B#4C155B

#4C155B is a dark, vivid purple. Relative luminance 0.028; OKLCH L 32.1% C 0.125 H 318.1°. Best body text is #FFFFFF at 13.41:1 contrast (WCAG AA passes).

Color values

HEX#4C155B
RGBrgb(76, 21, 91)
HSLhsl(287, 63%, 22%)
HSVhsv(287, 77%, 36%)
CMYKcmyk(16.5%, 76.9%, 0%, 64.3%)
CIE-LABlab(19.34, 36.70, -29.81)
CIE-LCHlch(19.34, 47.28, 320.91°)
OKLaboklab(32.08% 0.0932 -0.0837)
OKLCHoklch(32.08% 0.125 318.1)
XYZxyz(5.1367, 2.8284, 10.1709)
Luminance0.0283 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C155B #245B15
analogous
#29155B #4C155B #5B1547
triadic
#4C155B #5B4C15 #155B4C
tetradic
#4C155B #5B2915 #245B15 #15475B
square
#4C155B #5B2915 #245B15 #15475B
split-complementary
#4C155B #475B15 #155B29
monochromatic
#150619 #220A29 #4C155B #76208D #9F2CBE

Accessibility & contrast

On white

13.41
#4C155B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C155B
13.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C155B#FFFFFF#000000##FFFFFF
##4C155B1.0013.411.5713.41
#FFFFFF13.411.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B5D
Deuteranopia (green-blind)
#183159
Tritanopia (blue-blind)
#4C2336
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #4c155b;
/* rgb */ color: rgb(76, 21, 91);
/* oklch */ color: oklch(32.1% 0.125 318.1);
Tailwind
colors: {
  custom: {
    50: '#81588a',
    500: '#4c155b',
    950: '#000000',
  },
}
SCSS
$custom: #4c155b;
$custom-light: #81588a;
$custom-dark: #000000;
JSON
{
  "hex": "#4c155b",
  "rgb": {
    "r": 76,
    "g": 21,
    "b": 91
  },
  "hsl": {
    "h": 287.143,
    "s": 62.5,
    "l": 21.961
  },
  "oklch": {
    "l": 0.32082,
    "c": 0.12525,
    "h": 318.1
  },
  "luminance": 0.02828
}

Semantic roles & 50–950 ramp

primary
#4C155B
secondary
#4C9239
accent
#E64265
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #4C155B

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

Preview Lab → · Contrast checker → · Palette generator →

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