#9874FA#9874FA

#9874FA is a light, vivid violet. Relative luminance 0.261; OKLCH L 65.7% C 0.192 H 292.7°. Best body text is #000000 at 6.21:1 contrast (WCAG AA passes).

Color values

HEX#9874FA
RGBrgb(152, 116, 250)
HSLhsl(256, 93%, 72%)
HSVhsv(256, 54%, 98%)
CMYKcmyk(39.2%, 53.6%, 0%, 2%)
CIE-LABlab(58.10, 43.85, -62.36)
CIE-LCHlch(58.10, 76.23, 305.11°)
OKLaboklab(65.7% 0.0741 -0.1771)
OKLCHoklch(65.7% 0.192 292.7)
XYZxyz(36.4450, 26.0674, 93.5353)
Luminance0.2607 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9874FA #D6FA74
analogous
#7493FA #9874FA #DB74FA
triadic
#9874FA #FA9874 #74FA98
tetradic
#9874FA #FA7493 #D6FA74 #74FADB
square
#9874FA #FA7493 #D6FA74 #74FADB
split-complementary
#9874FA #FADB74 #93FA74
monochromatic
#4508EB #6C39F8 #9874FA #C4AFFC #E9E1FE

Accessibility & contrast

On white

3.38
#9874FA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.21
#9874FA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9874FA
6.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9874FA#FFFFFF#000000##000000
##9874FA1.003.386.216.21
#FFFFFF3.381.0021.0021.00
#0000006.2121.001.001.00
##0000006.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#358DFF
Deuteranopia (green-blind)
#3E89F7
Tritanopia (blue-blind)
#7E90AC
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #9874fa;
/* rgb */ color: rgb(152, 116, 250);
/* oklch */ color: oklch(65.7% 0.192 292.7);
Tailwind
colors: {
  custom: {
    50: '#bb9dfd',
    500: '#9874fa',
    950: '#000000',
  },
}
SCSS
$custom: #9874fa;
$custom-light: #bb9dfd;
$custom-dark: #000000;
JSON
{
  "hex": "#9874fa",
  "rgb": {
    "r": 152,
    "g": 116,
    "b": 250
  },
  "hsl": {
    "h": 256.119,
    "s": 93.056,
    "l": 71.765
  },
  "oklch": {
    "l": 0.65697,
    "c": 0.19196,
    "h": 292.7
  },
  "luminance": 0.26068
}

Semantic roles & 50–950 ramp

primary
#9874FA
secondary
#EDF6D4
accent
#E600A8
background
#FBF9FF
surface
#F7F2FF
border
#D0CCD7
text
#120E18
muted
#817E86

Preview Lab

Preview with #9874FA

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

Preview Lab → · Contrast checker → · Palette generator →

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