#874EA2#874EA2

#874EA2 is a mid, vivid purple. Relative luminance 0.132; OKLCH L 52.5% C 0.139 H 313.9°. Best body text is #FFFFFF at 5.77:1 contrast (WCAG AA passes).

Color values

HEX#874EA2
RGBrgb(135, 78, 162)
HSLhsl(281, 35%, 47%)
HSVhsv(281, 52%, 64%)
CMYKcmyk(16.7%, 51.9%, 0%, 36.5%)
CIE-LABlab(43.08, 38.92, -36.07)
CIE-LCHlch(43.08, 53.07, 317.18°)
OKLaboklab(52.55% 0.0967 -0.1005)
OKLCHoklch(52.55% 0.139 313.9)
XYZxyz(19.2366, 13.2088, 35.7116)
Luminance0.1321 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#874EA2 #69A24E
analogous
#5D4EA2 #874EA2 #A24E93
triadic
#874EA2 #A2874E #4EA287
tetradic
#874EA2 #A25D4E #69A24E #4E93A2
square
#874EA2 #A25D4E #69A24E #4E93A2
split-complementary
#874EA2 #93A24E #4EA25D
monochromatic
#42264F #653A79 #874EA2 #A472BB #BE9BCF

Accessibility & contrast

On white

5.77
#874EA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.64
#874EA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #874EA2
5.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##874EA2#FFFFFF#000000##FFFFFF
##874EA21.005.773.645.77
#FFFFFF5.771.0021.001.00
#0000003.6421.001.0021.00
##FFFFFF5.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B63A5
Deuteranopia (green-blind)
#4C67A0
Tritanopia (blue-blind)
#855B71
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #874ea2;
/* rgb */ color: rgb(135, 78, 162);
/* oklch */ color: oklch(52.5% 0.139 313.9);
Tailwind
colors: {
  custom: {
    50: '#ac82be',
    500: '#874ea2',
    950: '#000000',
  },
}
SCSS
$custom: #874ea2;
$custom-light: #ac82be;
$custom-dark: #000000;
JSON
{
  "hex": "#874ea2",
  "rgb": {
    "r": 135,
    "g": 78,
    "b": 162
  },
  "hsl": {
    "h": 280.714,
    "s": 35,
    "l": 47.059
  },
  "oklch": {
    "l": 0.5255,
    "c": 0.13949,
    "h": 313.9
  },
  "luminance": 0.13208
}

Semantic roles & 50–950 ramp

primary
#874EA2
secondary
#9EBC90
accent
#CB5D80
background
#FAF8FB
surface
#F4EFF7
border
#CECAD0
text
#100A12
muted
#7F7C81

Preview Lab

Preview with #874EA2

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

Preview Lab → · Contrast checker → · Palette generator →

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