#874DA2#874DA2

#874DA2 is a mid, vivid purple. Relative luminance 0.131; OKLCH L 52.4% C 0.141 H 314.0°. Best body text is #FFFFFF at 5.81:1 contrast (WCAG AA passes).

Color values

HEX#874DA2
RGBrgb(135, 77, 162)
HSLhsl(281, 36%, 47%)
HSVhsv(281, 52%, 64%)
CMYKcmyk(16.7%, 52.5%, 0%, 36.5%)
CIE-LABlab(42.87, 39.47, -36.40)
CIE-LCHlch(42.87, 53.70, 317.32°)
OKLaboklab(52.39% 0.0981 -0.1015)
OKLCHoklch(52.39% 0.141 314)
XYZxyz(19.1661, 13.0678, 35.6881)
Luminance0.1307 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#874DA2 #68A24D
analogous
#5D4DA2 #874DA2 #A24D93
triadic
#874DA2 #A2874D #4DA287
tetradic
#874DA2 #A25D4D #68A24D #4D93A2
square
#874DA2 #A25D4D #68A24D #4D93A2
split-complementary
#874DA2 #93A24D #4DA25D
monochromatic
#42264F #643979 #874DA2 #A471BB #BE9ACF

Accessibility & contrast

On white

5.81
#874DA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.61
#874DA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #874DA2
5.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##874DA2#FFFFFF#000000##FFFFFF
##874DA21.005.813.615.81
#FFFFFF5.811.0021.001.00
#0000003.6121.001.0021.00
##FFFFFF5.811.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #874da2;
/* rgb */ color: rgb(135, 77, 162);
/* oklch */ color: oklch(52.4% 0.141 314.0);
Tailwind
colors: {
  custom: {
    50: '#ac81be',
    500: '#874da2',
    950: '#000000',
  },
}
SCSS
$custom: #874da2;
$custom-light: #ac81be;
$custom-dark: #000000;
JSON
{
  "hex": "#874da2",
  "rgb": {
    "r": 135,
    "g": 77,
    "b": 162
  },
  "hsl": {
    "h": 280.941,
    "s": 35.565,
    "l": 46.863
  },
  "oklch": {
    "l": 0.52394,
    "c": 0.14117,
    "h": 314
  },
  "luminance": 0.13067
}

Semantic roles & 50–950 ramp

primary
#874DA2
secondary
#9DBC8F
accent
#CC5C80
background
#FAF8FB
surface
#F4EFF7
border
#CECAD0
text
#100A12
muted
#7F7C81

Preview Lab

Preview with #874DA2

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

Preview Lab → · Contrast checker → · Palette generator →

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