#4B154C#4B154C

#4B154C is a dark, moderate purple. Relative luminance 0.026; OKLCH L 30.9% C 0.110 H 327.1°. Best body text is #FFFFFF at 13.90:1 contrast (WCAG AA passes).

Color values

HEX#4B154C
RGBrgb(75, 21, 76)
HSLhsl(299, 57%, 19%)
HSVhsv(299, 72%, 30%)
CMYKcmyk(1.3%, 72.4%, 0%, 70.2%)
CIE-LABlab(18.16, 33.28, -21.57)
CIE-LCHlch(18.16, 39.66, 327.05°)
OKLaboklab(30.88% 0.0923 -0.0597)
OKLCHoklch(30.88% 0.11 327.1)
XYZxyz(4.4742, 2.5543, 7.0934)
Luminance0.0255 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B154C #164C15
analogous
#30154C #4B154C #4C1532
triadic
#4B154C #4C4B15 #154C4B
tetradic
#4B154C #4C3015 #164C15 #15324C
square
#4B154C #4C3015 #164C15 #15324C
split-complementary
#4B154C #324C15 #154C30
monochromatic
#180718 #1C081C #4B154C #7A227C #AA2FAC

Accessibility & contrast

On white

13.90
#4B154C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#4B154C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B154C
13.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B154C#FFFFFF#000000##FFFFFF
##4B154C1.0013.901.5113.90
#FFFFFF13.901.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C284E
Deuteranopia (green-blind)
#222F4B
Tritanopia (blue-blind)
#4D1D2E
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #4b154c;
/* rgb */ color: rgb(75, 21, 76);
/* oklch */ color: oklch(30.9% 0.110 327.1);
Tailwind
colors: {
  custom: {
    50: '#7f587e',
    500: '#4b154c',
    950: '#000000',
  },
}
SCSS
$custom: #4b154c;
$custom-light: #7f587e;
$custom-dark: #000000;
JSON
{
  "hex": "#4b154c",
  "rgb": {
    "r": 75,
    "g": 21,
    "b": 76
  },
  "hsl": {
    "h": 298.909,
    "s": 56.701,
    "l": 19.02
  },
  "oklch": {
    "l": 0.30877,
    "c": 0.1099,
    "h": 327.1
  },
  "luminance": 0.02554
}

Semantic roles & 50–950 ramp

primary
#4B154C
secondary
#3A8439
accent
#E0484B
background
#F7F5F7
surface
#EEE9EE
border
#C9C5C9
text
#0A030A
muted
#7C787C

Preview Lab

Preview with #4B154C

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

Preview Lab → · Contrast checker → · Palette generator →

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