#874BA2#874BA2

#874BA2 is a mid, vivid purple. Relative luminance 0.128; OKLCH L 52.1% C 0.145 H 314.3°. Best body text is #FFFFFF at 5.90:1 contrast (WCAG AA passes).

Color values

HEX#874BA2
RGBrgb(135, 75, 162)
HSLhsl(281, 37%, 46%)
HSVhsv(281, 54%, 64%)
CMYKcmyk(16.7%, 53.7%, 0%, 36.5%)
CIE-LABlab(42.45, 40.57, -37.06)
CIE-LCHlch(42.45, 54.95, 317.58°)
OKLaboklab(52.09% 0.1009 -0.1034)
OKLCHoklch(52.09% 0.145 314.3)
XYZxyz(19.0283, 12.7922, 35.6422)
Luminance0.1279 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#874BA2 #66A24B
analogous
#5C4BA2 #874BA2 #A24B92
triadic
#874BA2 #A2874B #4BA287
tetradic
#874BA2 #A25C4B #66A24B #4B92A2
square
#874BA2 #A25C4B #66A24B #4B92A2
split-complementary
#874BA2 #92A24B #4BA25C
monochromatic
#41244E #643878 #874BA2 #A46EBC #BE98CF

Accessibility & contrast

On white

5.90
#874BA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#874BA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #874BA2
5.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##874BA2#FFFFFF#000000##FFFFFF
##874BA21.005.903.565.90
#FFFFFF5.901.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3661A5
Deuteranopia (green-blind)
#4966A0
Tritanopia (blue-blind)
#85596F
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #874ba2;
/* rgb */ color: rgb(135, 75, 162);
/* oklch */ color: oklch(52.1% 0.145 314.3);
Tailwind
colors: {
  custom: {
    50: '#ac80be',
    500: '#874ba2',
    950: '#000000',
  },
}
SCSS
$custom: #874ba2;
$custom-light: #ac80be;
$custom-dark: #000000;
JSON
{
  "hex": "#874ba2",
  "rgb": {
    "r": 135,
    "g": 75,
    "b": 162
  },
  "hsl": {
    "h": 281.379,
    "s": 36.709,
    "l": 46.471
  },
  "oklch": {
    "l": 0.52086,
    "c": 0.14451,
    "h": 314.3
  },
  "luminance": 0.12792
}

Semantic roles & 50–950 ramp

primary
#874BA2
secondary
#9CBC8D
accent
#CD5B7E
background
#FAF7FB
surface
#F4EEF7
border
#CEC9D0
text
#100A12
muted
#7F7C81

Preview Lab

Preview with #874BA2

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

Preview Lab → · Contrast checker → · Palette generator →

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