#9874CB#9874CB

#9874CB is a light, vivid violet. Relative luminance 0.235; OKLCH L 63.0% C 0.132 H 301.8°. Best body text is #000000 at 5.70:1 contrast (WCAG AA passes).

Color values

HEX#9874CB
RGBrgb(152, 116, 203)
HSLhsl(265, 46%, 63%)
HSVhsv(265, 43%, 80%)
CMYKcmyk(25.1%, 42.9%, 0%, 20.4%)
CIE-LABlab(55.56, 31.87, -40.08)
CIE-LCHlch(55.56, 51.20, 308.49°)
OKLaboklab(62.98% 0.0695 -0.1119)
OKLCHoklch(62.98% 0.132 301.8)
XYZxyz(29.9714, 23.4779, 59.4411)
Luminance0.2348 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9874CB #A7CB74
analogous
#747BCB #9874CB #C474CB
triadic
#9874CB #CB9874 #74CB98
tetradic
#9874CB #CB747B #A7CB74 #74CBC4
square
#9874CB #CB747B #A7CB74 #74CBC4
split-complementary
#9874CB #CBC474 #7BCB74
monochromatic
#5B368F #7747BA #9874CB #B9A1DC #DACDEC

Accessibility & contrast

On white

3.69
#9874CB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.70
#9874CB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9874CB
5.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9874CB#FFFFFF#000000##000000
##9874CB1.003.695.705.70
#FFFFFF3.691.0021.0021.00
#0000005.7021.001.001.00
##0000005.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#5D84CE
Deuteranopia (green-blind)
#6585C9
Tritanopia (blue-blind)
#8F8396
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #9874cb;
/* rgb */ color: rgb(152, 116, 203);
/* oklch */ color: oklch(63.0% 0.132 301.8);
Tailwind
colors: {
  custom: {
    50: '#b89cdb',
    500: '#9874cb',
    950: '#000000',
  },
}
SCSS
$custom: #9874cb;
$custom-light: #b89cdb;
$custom-dark: #000000;
JSON
{
  "hex": "#9874cb",
  "rgb": {
    "r": 152,
    "g": 116,
    "b": 203
  },
  "hsl": {
    "h": 264.828,
    "s": 45.55,
    "l": 62.549
  },
  "oklch": {
    "l": 0.62977,
    "c": 0.13173,
    "h": 301.8
  },
  "luminance": 0.23478
}

Semantic roles & 50–950 ramp

primary
#9874CB
secondary
#D0DDBE
accent
#B92D7F
background
#FBF9FD
surface
#F6F2FB
border
#D0CCD4
text
#110E15
muted
#807E83

Preview Lab

Preview with #9874CB

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

Preview Lab → · Contrast checker → · Palette generator →

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