#9874C8#9874C8

#9874C8 is a light, vivid violet. Relative luminance 0.233; OKLCH L 62.8% C 0.128 H 302.6°. Best body text is #000000 at 5.67:1 contrast (WCAG AA passes).

Color values

HEX#9874C8
RGBrgb(152, 116, 200)
HSLhsl(266, 43%, 62%)
HSVhsv(266, 42%, 78%)
CMYKcmyk(24%, 42%, 0%, 21.6%)
CIE-LABlab(55.42, 31.15, -38.60)
CIE-LCHlch(55.42, 49.60, 308.90°)
OKLaboklab(62.82% 0.069 -0.1076)
OKLCHoklch(62.82% 0.128 302.6)
XYZxyz(29.6174, 23.3363, 57.5764)
Luminance0.2334 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9874C8 #A4C874
analogous
#747AC8 #9874C8 #C274C8
triadic
#9874C8 #C89874 #74C898
tetradic
#9874C8 #C8747A #A4C874 #74C8C2
square
#9874C8 #C8747A #A4C874 #74C8C2
split-complementary
#9874C8 #C8C274 #7AC874
monochromatic
#5B378B #7848B7 #9874C8 #B8A0D9 #D9CCEB

Accessibility & contrast

On white

3.71
#9874C8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.67
#9874C8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9874C8
5.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9874C8#FFFFFF#000000##000000
##9874C81.003.715.675.67
#FFFFFF3.711.0021.0021.00
#0000005.6721.001.001.00
##0000005.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#5F84CB
Deuteranopia (green-blind)
#6685C6
Tritanopia (blue-blind)
#908294
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #9874c8;
/* rgb */ color: rgb(152, 116, 200);
/* oklch */ color: oklch(62.8% 0.128 302.6);
Tailwind
colors: {
  custom: {
    50: '#b89cd9',
    500: '#9874c8',
    950: '#000000',
  },
}
SCSS
$custom: #9874c8;
$custom-light: #b89cd9;
$custom-dark: #000000;
JSON
{
  "hex": "#9874c8",
  "rgb": {
    "r": 152,
    "g": 116,
    "b": 200
  },
  "hsl": {
    "h": 265.714,
    "s": 43.299,
    "l": 61.961
  },
  "oklch": {
    "l": 0.62822,
    "c": 0.12782,
    "h": 302.6
  },
  "luminance": 0.23336
}

Semantic roles & 50–950 ramp

primary
#9874C8
secondary
#CEDBBC
accent
#B62F7C
background
#FBF9FD
surface
#F6F2FA
border
#D0CCD3
text
#110E14
muted
#807E83

Preview Lab

Preview with #9874C8

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

Preview Lab → · Contrast checker → · Palette generator →

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