#4C155E#4C155E

#4C155E is a dark, vivid purple. Relative luminance 0.029; OKLCH L 32.3% C 0.128 H 316.4°. Best body text is #FFFFFF at 13.32:1 contrast (WCAG AA passes).

Color values

HEX#4C155E
RGBrgb(76, 21, 94)
HSLhsl(285, 63%, 23%)
HSVhsv(285, 78%, 37%)
CMYKcmyk(19.1%, 77.7%, 0%, 63.1%)
CIE-LABlab(19.56, 37.36, -31.46)
CIE-LCHlch(19.56, 48.84, 319.91°)
OKLaboklab(32.31% 0.0929 -0.0885)
OKLCHoklch(32.31% 0.128 316.4)
XYZxyz(5.2687, 2.8812, 10.8661)
Luminance0.0288 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C155E #275E15
analogous
#27155E #4C155E #5E154C
triadic
#4C155E #5E4C15 #155E4C
tetradic
#4C155E #5E2715 #275E15 #154C5E
square
#4C155E #5E2715 #275E15 #154C5E
split-complementary
#4C155E #4C5E15 #155E27
monochromatic
#140619 #240A2C #4C155E #742090 #9D2BC2

Accessibility & contrast

On white

13.32
#4C155E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C155E
13.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C155E#FFFFFF#000000##FFFFFF
##4C155E1.0013.321.5813.32
#FFFFFF13.321.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C60
Deuteranopia (green-blind)
#15315C
Tritanopia (blue-blind)
#4B2438
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #4c155e;
/* rgb */ color: rgb(76, 21, 94);
/* oklch */ color: oklch(32.3% 0.128 316.4);
Tailwind
colors: {
  custom: {
    50: '#81598c',
    500: '#4c155e',
    950: '#000000',
  },
}
SCSS
$custom: #4c155e;
$custom-light: #81598c;
$custom-dark: #000000;
JSON
{
  "hex": "#4c155e",
  "rgb": {
    "r": 76,
    "g": 21,
    "b": 94
  },
  "hsl": {
    "h": 285.205,
    "s": 63.478,
    "l": 22.549
  },
  "oklch": {
    "l": 0.32308,
    "c": 0.12829,
    "h": 316.4
  },
  "luminance": 0.02881
}

Semantic roles & 50–950 ramp

primary
#4C155E
secondary
#509539
accent
#E7416A
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #4C155E

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

Preview Lab → · Contrast checker → · Palette generator →

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