#9873AB#9873AB

#9873AB is a mid, moderate violet. Relative luminance 0.219; OKLCH L 61.2% C 0.092 H 313.8°. Best body text is #000000 at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#9873AB
RGBrgb(152, 115, 171)
HSLhsl(280, 25%, 56%)
HSVhsv(280, 33%, 67%)
CMYKcmyk(11.1%, 32.7%, 0%, 32.9%)
CIE-LABlab(53.90, 25.07, -24.32)
CIE-LCHlch(53.90, 34.93, 315.87°)
OKLaboklab(61.25% 0.064 -0.0666)
OKLCHoklch(61.25% 0.092 313.8)
XYZxyz(26.4291, 21.8776, 41.3507)
Luminance0.2188 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9873AB #86AB73
analogous
#7C73AB #9873AB #AB73A2
triadic
#9873AB #AB9873 #73AB98
tetradic
#9873AB #AB7C73 #86AB73 #73A2AB
square
#9873AB #AB7C73 #86AB73 #73A2AB
split-complementary
#9873AB #A2AB73 #73AB7C
monochromatic
#583D66 #79548C #9873AB #B499C2 #D0BFD9

Accessibility & contrast

On white

3.91
#9873AB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.38
#9873AB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9873AB
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9873AB#FFFFFF#000000##000000
##9873AB1.003.915.385.38
#FFFFFF3.911.0021.0021.00
#0000005.3821.001.001.00
##0000005.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#6A7FAD
Deuteranopia (green-blind)
#7382A9
Tritanopia (blue-blind)
#977A87
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #9873ab;
/* rgb */ color: rgb(152, 115, 171);
/* oklch */ color: oklch(61.2% 0.092 313.8);
Tailwind
colors: {
  custom: {
    50: '#b79bc4',
    500: '#9873ab',
    950: '#000000',
  },
}
SCSS
$custom: #9873ab;
$custom-light: #b79bc4;
$custom-dark: #000000;
JSON
{
  "hex": "#9873ab",
  "rgb": {
    "r": 152,
    "g": 115,
    "b": 171
  },
  "hsl": {
    "h": 279.643,
    "s": 25,
    "l": 56.078
  },
  "oklch": {
    "l": 0.61249,
    "c": 0.09237,
    "h": 313.8
  },
  "luminance": 0.21877
}

Semantic roles & 50–950 ramp

primary
#9873AB
secondary
#B9C8B1
accent
#C16685
background
#FBF9FC
surface
#F6F2F8
border
#D0CCD1
text
#110E12
muted
#807E81

Preview Lab

Preview with #9873AB

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

Preview Lab → · Contrast checker → · Palette generator →

#9873AB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva