#9874CD#9874CD

#9874CD is a light, vivid violet. Relative luminance 0.236; OKLCH L 63.1% C 0.134 H 301.3°. Best body text is #000000 at 5.71:1 contrast (WCAG AA passes).

Color values

HEX#9874CD
RGBrgb(152, 116, 205)
HSLhsl(264, 47%, 63%)
HSVhsv(264, 43%, 80%)
CMYKcmyk(25.9%, 43.4%, 0%, 19.6%)
CIE-LABlab(55.66, 32.36, -41.06)
CIE-LCHlch(55.66, 52.28, 308.24°)
OKLaboklab(63.08% 0.0698 -0.1148)
OKLCHoklch(63.08% 0.134 301.3)
XYZxyz(30.2113, 23.5739, 60.7044)
Luminance0.2357 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9874CD #A9CD74
analogous
#747CCD #9874CD #C574CD
triadic
#9874CD #CD9874 #74CD98
tetradic
#9874CD #CD747C #A9CD74 #74CDC5
square
#9874CD #CD747C #A9CD74 #74CDC5
split-complementary
#9874CD #CDC574 #7CCD74
monochromatic
#5A3592 #7747BD #9874CD #B9A1DD #DBCEED

Accessibility & contrast

On white

3.67
#9874CD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.71
#9874CD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9874CD
5.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9874CD#FFFFFF#000000##000000
##9874CD1.003.675.715.71
#FFFFFF3.671.0021.0021.00
#0000005.7121.001.001.00
##0000005.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#5C85D0
Deuteranopia (green-blind)
#6485CB
Tritanopia (blue-blind)
#8E8397
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #9874cd;
/* rgb */ color: rgb(152, 116, 205);
/* oklch */ color: oklch(63.1% 0.134 301.3);
Tailwind
colors: {
  custom: {
    50: '#b89cdc',
    500: '#9874cd',
    950: '#000000',
  },
}
SCSS
$custom: #9874cd;
$custom-light: #b89cdc;
$custom-dark: #000000;
JSON
{
  "hex": "#9874cd",
  "rgb": {
    "r": 152,
    "g": 116,
    "b": 205
  },
  "hsl": {
    "h": 264.27,
    "s": 47.09,
    "l": 62.941
  },
  "oklch": {
    "l": 0.63083,
    "c": 0.13433,
    "h": 301.3
  },
  "luminance": 0.23574
}

Semantic roles & 50–950 ramp

primary
#9874CD
secondary
#D1DEBE
accent
#BA2B80
background
#FBF9FD
surface
#F6F2FB
border
#D0CCD4
text
#120E15
muted
#817E83

Preview Lab

Preview with #9874CD

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

Preview Lab → · Contrast checker → · Palette generator →

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