#9874BC#9874BC

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

Color values

HEX#9874BC
RGBrgb(152, 116, 188)
HSLhsl(270, 35%, 60%)
HSVhsv(270, 38%, 74%)
CMYKcmyk(19.1%, 38.3%, 0%, 26.3%)
CIE-LABlab(54.86, 28.31, -32.61)
CIE-LCHlch(54.86, 43.19, 310.96°)
OKLaboklab(62.22% 0.0666 -0.0903)
OKLCHoklch(62.22% 0.112 306.4)
XYZxyz(28.2696, 22.7972, 50.4782)
Luminance0.2280 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9874BC #98BC74
analogous
#7474BC #9874BC #BC74BC
triadic
#9874BC #BC9874 #74BC98
tetradic
#9874BC #BC7474 #98BC74 #74BCBC
square
#9874BC #BC7474 #98BC74 #74BCBC
split-complementary
#9874BC #BCBC74 #74BC74
monochromatic
#5B3B7B #794FA4 #9874BC #B79DD0 #D5C7E4

Accessibility & contrast

On white

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

On black

5.56
#9874BC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9874BC
5.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9874BC#FFFFFF#000000##000000
##9874BC1.003.785.565.56
#FFFFFF3.781.0021.0021.00
#0000005.5621.001.001.00
##0000005.5621.001.001.00

Color blindness preview

Protanopia (red-blind)
#6482BF
Deuteranopia (green-blind)
#6C84BA
Tritanopia (blue-blind)
#937F8F
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #9874bc;
/* rgb */ color: rgb(152, 116, 188);
/* oklch */ color: oklch(62.2% 0.112 306.4);
Tailwind
colors: {
  custom: {
    50: '#b79cd0',
    500: '#9874bc',
    950: '#000000',
  },
}
SCSS
$custom: #9874bc;
$custom-light: #b79cd0;
$custom-dark: #000000;
JSON
{
  "hex": "#9874bc",
  "rgb": {
    "r": 152,
    "g": 116,
    "b": 188
  },
  "hsl": {
    "h": 270,
    "s": 34.951,
    "l": 59.608
  },
  "oklch": {
    "l": 0.62221,
    "c": 0.11223,
    "h": 306.4
  },
  "luminance": 0.22797
}

Semantic roles & 50–950 ramp

primary
#9874BC
secondary
#C6D4B8
accent
#CB5D94
background
#FBF9FC
surface
#F6F2F9
border
#D0CCD2
text
#110E14
muted
#807E82

Preview Lab

Preview with #9874BC

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

Preview Lab → · Contrast checker → · Palette generator →

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