#874899#874899

#874899 is a mid, vivid purple. Relative luminance 0.121; OKLCH L 51.1% C 0.140 H 318.3°. Best body text is #FFFFFF at 6.15:1 contrast (WCAG AA passes).

Color values

HEX#874899
RGBrgb(135, 72, 153)
HSLhsl(287, 36%, 44%)
HSVhsv(287, 53%, 60%)
CMYKcmyk(11.8%, 52.9%, 0%, 40%)
CIE-LABlab(41.35, 40.23, -33.41)
CIE-LCHlch(41.35, 52.29, 320.29°)
OKLaboklab(51.12% 0.1043 -0.0928)
OKLCHoklch(51.12% 0.14 318.3)
XYZxyz(18.0580, 12.0862, 31.5125)
Luminance0.1209 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#874899 #5A9948
analogous
#5F4899 #874899 #994883
triadic
#874899 #998748 #489987
tetradic
#874899 #995F48 #5A9948 #488399
square
#874899 #995F48 #5A9948 #488399
split-complementary
#874899 #839948 #48995F
monochromatic
#3E2146 #62346F #874899 #A567B7 #BE90CB

Accessibility & contrast

On white

6.15
#874899 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.42
#874899 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #874899
6.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##874899#FFFFFF#000000##FFFFFF
##8748991.006.153.426.15
#FFFFFF6.151.0021.001.00
#0000003.4221.001.0021.00
##FFFFFF6.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#385D9C
Deuteranopia (green-blind)
#4C6497
Tritanopia (blue-blind)
#87546A
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #874899;
/* rgb */ color: rgb(135, 72, 153);
/* oklch */ color: oklch(51.1% 0.140 318.3);
Tailwind
colors: {
  custom: {
    50: '#ac7db7',
    500: '#874899',
    950: '#000000',
  },
}
SCSS
$custom: #874899;
$custom-light: #ac7db7;
$custom-dark: #000000;
JSON
{
  "hex": "#874899",
  "rgb": {
    "r": 135,
    "g": 72,
    "b": 153
  },
  "hsl": {
    "h": 286.667,
    "s": 36,
    "l": 44.118
  },
  "oklch": {
    "l": 0.51122,
    "c": 0.13959,
    "h": 318.3
  },
  "luminance": 0.12086
}

Semantic roles & 50–950 ramp

primary
#874899
secondary
#91B786
accent
#CC5C75
background
#FAF7FB
surface
#F4EEF6
border
#CEC9D0
text
#100A11
muted
#7F7C80

Preview Lab

Preview with #874899

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

Preview Lab → · Contrast checker → · Palette generator →

#874899 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva