#9873F2#9873F2

#9873F2 is a light, vivid violet. Relative luminance 0.253; OKLCH L 65.0% C 0.183 H 294.1°. Best body text is #000000 at 6.07:1 contrast (WCAG AA passes).

Color values

HEX#9873F2
RGBrgb(152, 115, 242)
HSLhsl(257, 83%, 70%)
HSVhsv(257, 52%, 95%)
CMYKcmyk(37.2%, 52.5%, 0%, 5.1%)
CIE-LABlab(57.41, 42.30, -59.04)
CIE-LCHlch(57.41, 72.63, 305.62°)
OKLaboklab(65.04% 0.075 -0.1673)
OKLCHoklch(65.04% 0.183 294.1)
XYZxyz(35.1025, 25.3469, 87.0302)
Luminance0.2535 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9873F2 #CDF273
analogous
#738EF2 #9873F2 #D773F2
triadic
#9873F2 #F29873 #73F298
tetradic
#9873F2 #F2738E #CDF273 #73F2D7
square
#9873F2 #F2738E #CDF273 #73F2D7
split-complementary
#9873F2 #F2D773 #8EF273
monochromatic
#4D14D7 #6F3BED #9873F2 #C1ABF7 #EAE3FC

Accessibility & contrast

On white

3.46
#9873F2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.07
#9873F2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9873F2
6.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9873F2#FFFFFF#000000##000000
##9873F21.003.466.076.07
#FFFFFF3.461.0021.0021.00
#0000006.0721.001.001.00
##0000006.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#3D8BF6
Deuteranopia (green-blind)
#4688EF
Tritanopia (blue-blind)
#828DA8
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #9873f2;
/* rgb */ color: rgb(152, 115, 242);
/* oklch */ color: oklch(65.0% 0.183 294.1);
Tailwind
colors: {
  custom: {
    50: '#bb9cf7',
    500: '#9873f2',
    950: '#000000',
  },
}
SCSS
$custom: #9873f2;
$custom-light: #bb9cf7;
$custom-dark: #000000;
JSON
{
  "hex": "#9873f2",
  "rgb": {
    "r": 152,
    "g": 115,
    "b": 242
  },
  "hsl": {
    "h": 257.48,
    "s": 83.007,
    "l": 70
  },
  "oklch": {
    "l": 0.65035,
    "c": 0.18335,
    "h": 294.1
  },
  "luminance": 0.25348
}

Semantic roles & 50–950 ramp

primary
#9873F2
secondary
#E8F2CF
accent
#DF06A0
background
#FBF9FF
surface
#F7F2FF
border
#D0CCD7
text
#120E17
muted
#817E85

Preview Lab

Preview with #9873F2

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

Preview Lab → · Contrast checker → · Palette generator →

#9873F2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva