#872498#872498

#872498 is a mid, vivid purple. Relative luminance 0.087; OKLCH L 46.8% C 0.190 H 321.3°. Best body text is #FFFFFF at 7.68:1 contrast (WCAG AA passes).

Color values

HEX#872498
RGBrgb(135, 36, 152)
HSLhsl(291, 62%, 37%)
HSVhsv(291, 76%, 60%)
CMYKcmyk(11.2%, 76.3%, 0%, 40.4%)
CIE-LABlab(35.36, 56.34, -42.33)
CIE-LCHlch(35.36, 70.47, 323.08°)
OKLaboklab(46.76% 0.1479 -0.1185)
OKLCHoklch(46.76% 0.19 321.3)
XYZxyz(16.2894, 8.6805, 30.5172)
Luminance0.0868 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#872498 #359824
analogous
#4D2498 #872498 #98246F
triadic
#872498 #988724 #249887
tetradic
#872498 #984D24 #359824 #246F98
square
#872498 #984D24 #359824 #246F98
split-complementary
#872498 #6F9824 #24984D
monochromatic
#2F0D35 #5B1867 #872498 #B330C9 #C75ED9

Accessibility & contrast

On white

7.68
#872498 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#872498 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #872498
7.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##872498#FFFFFF#000000##FFFFFF
##8724981.007.682.747.68
#FFFFFF7.681.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C9B
Deuteranopia (green-blind)
#335795
Tritanopia (blue-blind)
#883B5D
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #872498;
/* rgb */ color: rgb(135, 36, 152);
/* oklch */ color: oklch(46.8% 0.190 321.3);
Tailwind
colors: {
  custom: {
    50: '#ae6ab7',
    500: '#872498',
    950: '#000000',
  },
}
SCSS
$custom: #872498;
$custom-light: #ae6ab7;
$custom-dark: #000000;
JSON
{
  "hex": "#872498",
  "rgb": {
    "r": 135,
    "g": 36,
    "b": 152
  },
  "hsl": {
    "h": 291.207,
    "s": 61.702,
    "l": 36.863
  },
  "oklch": {
    "l": 0.46762,
    "c": 0.18951,
    "h": 321.3
  },
  "luminance": 0.0868
}

Semantic roles & 50–950 ramp

primary
#872498
secondary
#69BE5A
accent
#E5435B
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#110711
muted
#807A80

Preview Lab

Preview with #872498

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

Preview Lab → · Contrast checker → · Palette generator →

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