#4A154E#4A154E

#4A154E is a dark, moderate purple. Relative luminance 0.025; OKLCH L 30.8% C 0.111 H 324.9°. Best body text is #FFFFFF at 13.92:1 contrast (WCAG AA passes).

Color values

HEX#4A154E
RGBrgb(74, 21, 78)
HSLhsl(296, 58%, 19%)
HSVhsv(296, 73%, 31%)
CMYKcmyk(5.1%, 73.1%, 0%, 69.4%)
CIE-LABlab(18.11, 33.42, -23.03)
CIE-LCHlch(18.11, 40.59, 325.42°)
OKLaboklab(30.85% 0.091 -0.064)
OKLCHoklch(30.85% 0.111 324.9)
XYZxyz(4.4672, 2.5425, 7.4617)
Luminance0.0254 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A154E #194E15
analogous
#2E154E #4A154E #4E1536
triadic
#4A154E #4E4A15 #154E4A
tetradic
#4A154E #4E2E15 #194E15 #15364E
square
#4A154E #4E2E15 #194E15 #15364E
split-complementary
#4A154E #364E15 #154E2E
monochromatic
#170618 #1C081E #4A154E #78227E #A52FAE

Accessibility & contrast

On white

13.92
#4A154E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4A154E
13.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A154E#FFFFFF#000000##FFFFFF
##4A154E1.0013.921.5113.92
#FFFFFF13.921.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#092850
Deuteranopia (green-blind)
#202E4D
Tritanopia (blue-blind)
#4C1E2F
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #4a154e;
/* rgb */ color: rgb(74, 21, 78);
/* oklch */ color: oklch(30.8% 0.111 324.9);
Tailwind
colors: {
  custom: {
    50: '#7f5880',
    500: '#4a154e',
    950: '#000000',
  },
}
SCSS
$custom: #4a154e;
$custom-light: #7f5880;
$custom-dark: #000000;
JSON
{
  "hex": "#4a154e",
  "rgb": {
    "r": 74,
    "g": 21,
    "b": 78
  },
  "hsl": {
    "h": 295.789,
    "s": 57.576,
    "l": 19.412
  },
  "oklch": {
    "l": 0.30845,
    "c": 0.11125,
    "h": 324.9
  },
  "luminance": 0.02542
}

Semantic roles & 50–950 ramp

primary
#4A154E
secondary
#3E8639
accent
#E14752
background
#F7F5F7
surface
#EEE9EE
border
#C9C5C9
text
#0A030A
muted
#7C787C

Preview Lab

Preview with #4A154E

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

Preview Lab → · Contrast checker → · Palette generator →

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