#9874DF#9874DF

#9874DF is a light, vivid violet. Relative luminance 0.245; OKLCH L 64.1% C 0.158 H 297.3°. Best body text is #000000 at 5.90:1 contrast (WCAG AA passes).

Color values

HEX#9874DF
RGBrgb(152, 116, 223)
HSLhsl(260, 63%, 66%)
HSVhsv(260, 48%, 87%)
CMYKcmyk(31.8%, 48%, 0%, 12.5%)
CIE-LABlab(56.58, 36.84, -49.76)
CIE-LCHlch(56.58, 61.91, 306.51°)
OKLaboklab(64.07% 0.0723 -0.1401)
OKLCHoklch(64.07% 0.158 297.3)
XYZxyz(32.5103, 24.4935, 72.8126)
Luminance0.2449 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9874DF #BBDF74
analogous
#7486DF #9874DF #CE74DF
triadic
#9874DF #DF9874 #74DF98
tetradic
#9874DF #DF7486 #BBDF74 #74DFCE
square
#9874DF #DF7486 #BBDF74 #74DFCE
split-complementary
#9874DF #DFCE74 #86DF74
monochromatic
#5629B0 #7342D4 #9874DF #BDA6EA #E2D7F6

Accessibility & contrast

On white

3.56
#9874DF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.90
#9874DF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9874DF
5.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9874DF#FFFFFF#000000##000000
##9874DF1.003.565.905.90
#FFFFFF3.561.0021.0021.00
#0000005.9021.001.001.00
##0000005.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#5088E3
Deuteranopia (green-blind)
#5887DC
Tritanopia (blue-blind)
#89889F
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #9874df;
/* rgb */ color: rgb(152, 116, 223);
/* oklch */ color: oklch(64.1% 0.158 297.3);
Tailwind
colors: {
  custom: {
    50: '#b99de9',
    500: '#9874df',
    950: '#000000',
  },
}
SCSS
$custom: #9874df;
$custom-light: #b99de9;
$custom-dark: #000000;
JSON
{
  "hex": "#9874df",
  "rgb": {
    "r": 152,
    "g": 116,
    "b": 223
  },
  "hsl": {
    "h": 260.187,
    "s": 62.573,
    "l": 66.471
  },
  "oklch": {
    "l": 0.64073,
    "c": 0.15765,
    "h": 297.3
  },
  "luminance": 0.24494
}

Semantic roles & 50–950 ramp

primary
#9874DF
secondary
#DDE9C6
accent
#CA1B8F
background
#FBF9FE
surface
#F6F2FD
border
#D0CCD5
text
#120E16
muted
#817E84

Preview Lab

Preview with #9874DF

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

Preview Lab → · Contrast checker → · Palette generator →

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