#874CA2#874CA2

#874CA2 is a mid, vivid purple. Relative luminance 0.129; OKLCH L 52.2% C 0.143 H 314.2°. Best body text is #FFFFFF at 5.86:1 contrast (WCAG AA passes).

Color values

HEX#874CA2
RGBrgb(135, 76, 162)
HSLhsl(281, 36%, 47%)
HSVhsv(281, 53%, 64%)
CMYKcmyk(16.7%, 53.1%, 0%, 36.5%)
CIE-LABlab(42.66, 40.02, -36.74)
CIE-LCHlch(42.66, 54.32, 317.45°)
OKLaboklab(52.24% 0.0995 -0.1025)
OKLCHoklch(52.24% 0.143 314.2)
XYZxyz(19.0966, 12.9289, 35.6650)
Luminance0.1293 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#874CA2 #67A24C
analogous
#5C4CA2 #874CA2 #A24C92
triadic
#874CA2 #A2874C #4CA287
tetradic
#874CA2 #A25C4C #67A24C #4C92A2
square
#874CA2 #A25C4C #67A24C #4C92A2
split-complementary
#874CA2 #92A24C #4CA25C
monochromatic
#42254F #643878 #874CA2 #A470BC #BE99CF

Accessibility & contrast

On white

5.86
#874CA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.59
#874CA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #874CA2
5.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##874CA2#FFFFFF#000000##FFFFFF
##874CA21.005.863.595.86
#FFFFFF5.861.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3861A5
Deuteranopia (green-blind)
#4A66A0
Tritanopia (blue-blind)
#855A70
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #874ca2;
/* rgb */ color: rgb(135, 76, 162);
/* oklch */ color: oklch(52.2% 0.143 314.2);
Tailwind
colors: {
  custom: {
    50: '#ac80be',
    500: '#874ca2',
    950: '#000000',
  },
}
SCSS
$custom: #874ca2;
$custom-light: #ac80be;
$custom-dark: #000000;
JSON
{
  "hex": "#874ca2",
  "rgb": {
    "r": 135,
    "g": 76,
    "b": 162
  },
  "hsl": {
    "h": 281.163,
    "s": 36.134,
    "l": 46.667
  },
  "oklch": {
    "l": 0.52239,
    "c": 0.14284,
    "h": 314.2
  },
  "luminance": 0.12928
}

Semantic roles & 50–950 ramp

primary
#874CA2
secondary
#9CBC8E
accent
#CC5C7F
background
#FAF7FB
surface
#F4EEF7
border
#CEC9D0
text
#100A12
muted
#7F7C81

Preview Lab

Preview with #874CA2

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

Preview Lab → · Contrast checker → · Palette generator →

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