#9879FA#9879FA

#9879FA is a light, vivid violet. Relative luminance 0.273; OKLCH L 66.5% C 0.185 H 291.6°. Best body text is #000000 at 6.45:1 contrast (WCAG AA passes).

Color values

HEX#9879FA
RGBrgb(152, 121, 250)
HSLhsl(254, 93%, 73%)
HSVhsv(254, 52%, 98%)
CMYKcmyk(39.2%, 51.6%, 0%, 2%)
CIE-LABlab(59.21, 41.04, -60.59)
CIE-LCHlch(59.21, 73.18, 304.11°)
OKLaboklab(66.52% 0.0682 -0.1718)
OKLCHoklch(66.52% 0.185 291.6)
XYZxyz(37.0369, 27.2513, 93.7326)
Luminance0.2725 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9879FA #DBFA79
analogous
#799AFA #9879FA #D979FA
triadic
#9879FA #FA9879 #79FA98
tetradic
#9879FA #FA799A #DBFA79 #79FAD9
square
#9879FA #FA799A #DBFA79 #79FAD9
split-complementary
#9879FA #FAD979 #9AFA79
monochromatic
#4009F0 #6B3EF8 #9879FA #C5B4FC #E8E2FE

Accessibility & contrast

On white

3.26
#9879FA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.45
#9879FA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9879FA
6.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9879FA#FFFFFF#000000##000000
##9879FA1.003.266.456.45
#FFFFFF3.261.0021.0021.00
#0000006.4521.001.001.00
##0000006.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#4191FE
Deuteranopia (green-blind)
#468CF7
Tritanopia (blue-blind)
#7E94AE
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #9879fa;
/* rgb */ color: rgb(152, 121, 250);
/* oklch */ color: oklch(66.5% 0.185 291.6);
Tailwind
colors: {
  custom: {
    50: '#bba0fd',
    500: '#9879fa',
    950: '#000000',
  },
}
SCSS
$custom: #9879fa;
$custom-light: #bba0fd;
$custom-dark: #000000;
JSON
{
  "hex": "#9879fa",
  "rgb": {
    "r": 152,
    "g": 121,
    "b": 250
  },
  "hsl": {
    "h": 254.419,
    "s": 92.806,
    "l": 72.745
  },
  "oklch": {
    "l": 0.66518,
    "c": 0.18488,
    "h": 291.6
  },
  "luminance": 0.27252
}

Semantic roles & 50–950 ramp

primary
#9879FA
secondary
#EEF6D5
accent
#E600AE
background
#FBF9FF
surface
#F7F2FF
border
#D0CCD7
text
#120F18
muted
#817E86

Preview Lab

Preview with #9879FA

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

Preview Lab → · Contrast checker → · Palette generator →

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