#874798#874798

#874798 is a mid, vivid purple. Relative luminance 0.119; OKLCH L 50.9% C 0.140 H 318.9°. Best body text is #FFFFFF at 6.20:1 contrast (WCAG AA passes).

Color values

HEX#874798
RGBrgb(135, 71, 152)
HSLhsl(287, 36%, 44%)
HSVhsv(287, 53%, 60%)
CMYKcmyk(11.2%, 53.3%, 0%, 40.4%)
CIE-LABlab(41.10, 40.55, -33.21)
CIE-LCHlch(41.10, 52.42, 320.69°)
OKLaboklab(50.92% 0.1056 -0.0922)
OKLCHoklch(50.92% 0.14 318.9)
XYZxyz(17.9117, 11.9251, 31.0579)
Luminance0.1192 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#874798 #589847
analogous
#5E4798 #874798 #984780
triadic
#874798 #988747 #479887
tetradic
#874798 #985E47 #589847 #478098
square
#874798 #985E47 #589847 #478098
split-complementary
#874798 #809847 #47985E
monochromatic
#3D2045 #62346E #874798 #A665B7 #BE8FCB

Accessibility & contrast

On white

6.20
#874798 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#874798 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #874798
6.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##874798#FFFFFF#000000##FFFFFF
##8747981.006.203.386.20
#FFFFFF6.201.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#385D9B
Deuteranopia (green-blind)
#4C6396
Tritanopia (blue-blind)
#875369
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #874798;
/* rgb */ color: rgb(135, 71, 152);
/* oklch */ color: oklch(50.9% 0.140 318.9);
Tailwind
colors: {
  custom: {
    50: '#ac7db6',
    500: '#874798',
    950: '#000000',
  },
}
SCSS
$custom: #874798;
$custom-light: #ac7db6;
$custom-dark: #000000;
JSON
{
  "hex": "#874798",
  "rgb": {
    "r": 135,
    "g": 71,
    "b": 152
  },
  "hsl": {
    "h": 287.407,
    "s": 36.323,
    "l": 43.725
  },
  "oklch": {
    "l": 0.50917,
    "c": 0.14019,
    "h": 318.9
  },
  "luminance": 0.11924
}

Semantic roles & 50–950 ramp

primary
#874798
secondary
#8FB685
accent
#CC5B73
background
#FAF7FB
surface
#F4EEF6
border
#CEC9D0
text
#100A11
muted
#7F7C80

Preview Lab

Preview with #874798

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

Preview Lab → · Contrast checker → · Palette generator →

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