#9874BB#9874BB

#9874BB is a light, moderate violet. Relative luminance 0.228; OKLCH L 62.2% C 0.111 H 306.7°. Best body text is #000000 at 5.55:1 contrast (WCAG AA passes).

Color values

HEX#9874BB
RGBrgb(152, 116, 187)
HSLhsl(270, 34%, 59%)
HSVhsv(270, 38%, 73%)
CMYKcmyk(18.7%, 38%, 0%, 26.7%)
CIE-LABlab(54.82, 28.08, -32.11)
CIE-LCHlch(54.82, 42.66, 311.17°)
OKLaboklab(62.17% 0.0664 -0.0889)
OKLCHoklch(62.17% 0.111 306.7)
XYZxyz(28.1622, 22.7543, 49.9125)
Luminance0.2275 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9874BB #97BB74
analogous
#7574BB #9874BB #BB74BB
triadic
#9874BB #BB9874 #74BB98
tetradic
#9874BB #BB7574 #97BB74 #74BBBB
square
#9874BB #BB7574 #97BB74 #74BBBB
split-complementary
#9874BB #BBBB74 #74BB75
monochromatic
#5B3B79 #794FA2 #9874BB #B69DCF #D5C6E3

Accessibility & contrast

On white

3.78
#9874BB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.55
#9874BB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9874BB
5.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9874BB#FFFFFF#000000##000000
##9874BB1.003.785.555.55
#FFFFFF3.781.0021.0021.00
#0000005.5521.001.001.00
##0000005.5521.001.001.00

Color blindness preview

Protanopia (red-blind)
#6582BE
Deuteranopia (green-blind)
#6D84B9
Tritanopia (blue-blind)
#937F8F
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #9874bb;
/* rgb */ color: rgb(152, 116, 187);
/* oklch */ color: oklch(62.2% 0.111 306.7);
Tailwind
colors: {
  custom: {
    50: '#b79ccf',
    500: '#9874bb',
    950: '#000000',
  },
}
SCSS
$custom: #9874bb;
$custom-light: #b79ccf;
$custom-dark: #000000;
JSON
{
  "hex": "#9874bb",
  "rgb": {
    "r": 152,
    "g": 116,
    "b": 187
  },
  "hsl": {
    "h": 270.423,
    "s": 34.3,
    "l": 59.412
  },
  "oklch": {
    "l": 0.62173,
    "c": 0.11094,
    "h": 306.7
  },
  "luminance": 0.22754
}

Semantic roles & 50–950 ramp

primary
#9874BB
secondary
#C5D3B8
accent
#CA5D93
background
#FBF9FC
surface
#F6F2F9
border
#D0CCD2
text
#110E14
muted
#807E82

Preview Lab

Preview with #9874BB

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

Preview Lab → · Contrast checker → · Palette generator →

#9874BB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva