#874CA4#874CA4

#874CA4 is a mid, vivid purple. Relative luminance 0.130; OKLCH L 52.4% C 0.145 H 313.4°. Best body text is #FFFFFF at 5.83:1 contrast (WCAG AA passes).

Color values

HEX#874CA4
RGBrgb(135, 76, 164)
HSLhsl(280, 37%, 47%)
HSVhsv(280, 54%, 64%)
CMYKcmyk(17.7%, 53.7%, 0%, 35.7%)
CIE-LABlab(42.76, 40.47, -37.75)
CIE-LCHlch(42.76, 55.34, 316.99°)
OKLaboklab(52.35% 0.0997 -0.1054)
OKLCHoklch(52.35% 0.145 313.4)
XYZxyz(19.2758, 13.0006, 36.6087)
Luminance0.1300 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#874CA4 #69A44C
analogous
#5B4CA4 #874CA4 #A44C95
triadic
#874CA4 #A4874C #4CA487
tetradic
#874CA4 #A45B4C #69A44C #4C95A4
square
#874CA4 #A45B4C #69A44C #4C95A4
split-complementary
#874CA4 #95A44C #4CA45B
monochromatic
#422550 #65397A #874CA4 #A470BD #BE9AD0

Accessibility & contrast

On white

5.83
#874CA4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.60
#874CA4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #874CA4
5.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##874CA4#FFFFFF#000000##FFFFFF
##874CA41.005.833.605.83
#FFFFFF5.831.0021.001.00
#0000003.6021.001.0021.00
##FFFFFF5.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3662A7
Deuteranopia (green-blind)
#4966A2
Tritanopia (blue-blind)
#845A71
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #874ca4;
/* rgb */ color: rgb(135, 76, 164);
/* oklch */ color: oklch(52.4% 0.145 313.4);
Tailwind
colors: {
  custom: {
    50: '#ac80bf',
    500: '#874ca4',
    950: '#000000',
  },
}
SCSS
$custom: #874ca4;
$custom-light: #ac80bf;
$custom-dark: #000000;
JSON
{
  "hex": "#874ca4",
  "rgb": {
    "r": 135,
    "g": 76,
    "b": 164
  },
  "hsl": {
    "h": 280.227,
    "s": 36.667,
    "l": 47.059
  },
  "oklch": {
    "l": 0.52354,
    "c": 0.14512,
    "h": 313.4
  },
  "luminance": 0.13
}

Semantic roles & 50–950 ramp

primary
#874CA4
secondary
#9EBD8F
accent
#CD5B81
background
#FAF7FB
surface
#F4EEF7
border
#CEC9D0
text
#100A12
muted
#7F7C81

Preview Lab

Preview with #874CA4

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

Preview Lab → · Contrast checker → · Palette generator →

#874CA4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva