#9874FC#9874FC

#9874FC is a light, vivid violet. Relative luminance 0.262; OKLCH L 65.8% C 0.194 H 292.4°. Best body text is #000000 at 6.24:1 contrast (WCAG AA passes).

Color values

HEX#9874FC
RGBrgb(152, 116, 252)
HSLhsl(256, 96%, 72%)
HSVhsv(256, 54%, 99%)
CMYKcmyk(39.7%, 54%, 0%, 1.2%)
CIE-LABlab(58.22, 44.38, -63.28)
CIE-LCHlch(58.22, 77.29, 305.04°)
OKLaboklab(65.82% 0.0742 -0.1797)
OKLCHoklch(65.82% 0.194 292.4)
XYZxyz(36.7602, 26.1935, 95.1956)
Luminance0.2619 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9874FC #D8FC74
analogous
#7494FC #9874FC #DC74FC
triadic
#9874FC #FC9874 #74FC98
tetradic
#9874FC #FC7494 #D8FC74 #74FCDC
square
#9874FC #FC7494 #D8FC74 #74FCDC
split-complementary
#9874FC #FCDC74 #94FC74
monochromatic
#4305F0 #6C38FB #9874FC #C4B0FD #E9E1FE

Accessibility & contrast

On white

3.37
#9874FC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.24
#9874FC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9874FC
6.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9874FC#FFFFFF#000000##000000
##9874FC1.003.376.246.24
#FFFFFF3.371.0021.0021.00
#0000006.2421.001.001.00
##0000006.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#328EFF
Deuteranopia (green-blind)
#3B89F9
Tritanopia (blue-blind)
#7D91AD
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #9874fc;
/* rgb */ color: rgb(152, 116, 252);
/* oklch */ color: oklch(65.8% 0.194 292.4);
Tailwind
colors: {
  custom: {
    50: '#bb9dfe',
    500: '#9874fc',
    950: '#000000',
  },
}
SCSS
$custom: #9874fc;
$custom-light: #bb9dfe;
$custom-dark: #000000;
JSON
{
  "hex": "#9874fc",
  "rgb": {
    "r": 152,
    "g": 116,
    "b": 252
  },
  "hsl": {
    "h": 255.882,
    "s": 95.775,
    "l": 72.157
  },
  "oklch": {
    "l": 0.65824,
    "c": 0.19445,
    "h": 292.4
  },
  "luminance": 0.26194
}

Semantic roles & 50–950 ramp

primary
#9874FC
secondary
#EEF7D4
accent
#E600A9
background
#FCF9FF
surface
#F8F2FF
border
#D1CCD7
text
#120E18
muted
#817E86

Preview Lab

Preview with #9874FC

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

Preview Lab → · Contrast checker → · Palette generator →

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