#872495#872495

#872495 is a mid, vivid purple. Relative luminance 0.086; OKLCH L 46.6% C 0.187 H 322.4°. Best body text is #FFFFFF at 7.73:1 contrast (WCAG AA passes).

Color values

HEX#872495
RGBrgb(135, 36, 149)
HSLhsl(293, 61%, 36%)
HSVhsv(293, 76%, 58%)
CMYKcmyk(9.4%, 75.8%, 0%, 41.6%)
CIE-LABlab(35.17, 55.79, -40.81)
CIE-LCHlch(35.17, 69.12, 323.81°)
OKLaboklab(46.56% 0.1481 -0.1141)
OKLCHoklch(46.56% 0.187 322.4)
XYZxyz(16.0468, 8.5835, 29.2395)
Luminance0.0858 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#872495 #329524
analogous
#4F2495 #872495 #95246B
triadic
#872495 #958724 #249587
tetradic
#872495 #954F24 #329524 #246B95
square
#872495 #954F24 #329524 #246B95
split-complementary
#872495 #6B9524 #24954F
monochromatic
#2E0C32 #5A1864 #872495 #B430C6 #C85CD8

Accessibility & contrast

On white

7.73
#872495 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#872495 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #872495
7.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##872495#FFFFFF#000000##FFFFFF
##8724951.007.732.727.73
#FFFFFF7.731.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C98
Deuteranopia (green-blind)
#355692
Tritanopia (blue-blind)
#893A5B
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #872495;
/* rgb */ color: rgb(135, 36, 149);
/* oklch */ color: oklch(46.6% 0.187 322.4);
Tailwind
colors: {
  custom: {
    50: '#ae6ab5',
    500: '#872495',
    950: '#000000',
  },
}
SCSS
$custom: #872495;
$custom-light: #ae6ab5;
$custom-dark: #000000;
JSON
{
  "hex": "#872495",
  "rgb": {
    "r": 135,
    "g": 36,
    "b": 149
  },
  "hsl": {
    "h": 292.566,
    "s": 61.081,
    "l": 36.275
  },
  "oklch": {
    "l": 0.46564,
    "c": 0.18696,
    "h": 322.4
  },
  "luminance": 0.08583
}

Semantic roles & 50–950 ramp

primary
#872495
secondary
#65BC59
accent
#E44458
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#110711
muted
#807A80

Preview Lab

Preview with #872495

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

Preview Lab → · Contrast checker → · Palette generator →

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