#4C154E#4C154E

#4C154E is a dark, moderate purple. Relative luminance 0.026; OKLCH L 31.2% C 0.112 H 326.4°. Best body text is #FFFFFF at 13.77:1 contrast (WCAG AA passes).

Color values

HEX#4C154E
RGBrgb(76, 21, 78)
HSLhsl(298, 58%, 19%)
HSVhsv(298, 73%, 31%)
CMYKcmyk(2.6%, 73.1%, 0%, 69.4%)
CIE-LABlab(18.47, 33.96, -22.45)
CIE-LCHlch(18.47, 40.71, 326.54°)
OKLaboklab(31.17% 0.0936 -0.0622)
OKLCHoklch(31.17% 0.112 326.4)
XYZxyz(4.6237, 2.6232, 7.4690)
Luminance0.0262 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C154E #174E15
analogous
#30154E #4C154E #4E1534
triadic
#4C154E #4E4C15 #154E4C
tetradic
#4C154E #4E3015 #174E15 #15344E
square
#4C154E #4E3015 #174E15 #15344E
split-complementary
#4C154E #344E15 #154E30
monochromatic
#170618 #1D081E #4C154E #7B227E #AA2FAE

Accessibility & contrast

On white

13.77
#4C154E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#4C154E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C154E
13.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C154E#FFFFFF#000000##FFFFFF
##4C154E1.0013.771.5213.77
#FFFFFF13.771.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B2950
Deuteranopia (green-blind)
#222F4D
Tritanopia (blue-blind)
#4E1D2F
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #4c154e;
/* rgb */ color: rgb(76, 21, 78);
/* oklch */ color: oklch(31.2% 0.112 326.4);
Tailwind
colors: {
  custom: {
    50: '#805880',
    500: '#4c154e',
    950: '#000000',
  },
}
SCSS
$custom: #4c154e;
$custom-light: #805880;
$custom-dark: #000000;
JSON
{
  "hex": "#4c154e",
  "rgb": {
    "r": 76,
    "g": 21,
    "b": 78
  },
  "hsl": {
    "h": 297.895,
    "s": 57.576,
    "l": 19.412
  },
  "oklch": {
    "l": 0.31173,
    "c": 0.11241,
    "h": 326.4
  },
  "luminance": 0.02623
}

Semantic roles & 50–950 ramp

primary
#4C154E
secondary
#3C8639
accent
#E1474C
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0A030A
muted
#7C787C

Preview Lab

Preview with #4C154E

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

Preview Lab → · Contrast checker → · Palette generator →

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