#B873FA#B873FA

#B873FA is a light, vivid violet. Relative luminance 0.294; OKLCH L 68.6% C 0.198 H 305.4°. Best body text is #000000 at 6.87:1 contrast (WCAG AA passes).

Color values

HEX#B873FA
RGBrgb(184, 115, 250)
HSLhsl(271, 93%, 72%)
HSVhsv(271, 54%, 98%)
CMYKcmyk(26.4%, 54%, 0%, 2%)
CIE-LABlab(61.09, 51.98, -57.39)
CIE-LCHlch(61.09, 77.44, 312.17°)
OKLaboklab(68.65% 0.1148 -0.1616)
OKLCHoklch(68.65% 0.198 305.4)
XYZxyz(43.1495, 29.3542, 93.8167)
Luminance0.2935 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B873FA #B5FA73
analogous
#7573FA #B873FA #FA73F8
triadic
#B873FA #FAB873 #73FAB8
tetradic
#B873FA #FA7573 #B5FA73 #73F8FA
square
#B873FA #FA7573 #B5FA73 #73F8FA
split-complementary
#B873FA #F8FA73 #73FA75
monochromatic
#7C08EA #9A38F8 #B873FA #D6AEFC #F0E1FE

Accessibility & contrast

On white

3.06
#B873FA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.87
#B873FA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B873FA
6.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B873FA#FFFFFF#000000##000000
##B873FA1.003.066.876.87
#FFFFFF3.061.0021.0021.00
#0000006.8721.001.001.00
##0000006.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#4491FF
Deuteranopia (green-blind)
#5B94F7
Tritanopia (blue-blind)
#AD8CAC
Achromatopsia (no color)
#939393

Design tokens & code

CSS
--color: #b873fa;
/* rgb */ color: rgb(184, 115, 250);
/* oklch */ color: oklch(68.6% 0.198 305.4);
Tailwind
colors: {
  custom: {
    50: '#d19dfc',
    500: '#b873fa',
    950: '#000000',
  },
}
SCSS
$custom: #b873fa;
$custom-light: #d19dfc;
$custom-dark: #000000;
JSON
{
  "hex": "#b873fa",
  "rgb": {
    "r": 184,
    "g": 115,
    "b": 250
  },
  "hsl": {
    "h": 270.667,
    "s": 93.103,
    "l": 71.569
  },
  "oklch": {
    "l": 0.68646,
    "c": 0.19821,
    "h": 305.4
  },
  "luminance": 0.29354
}

Semantic roles & 50–950 ramp

primary
#B873FA
secondary
#E4F6D3
accent
#E60070
background
#FDF9FF
surface
#FAF2FF
border
#D3CCD7
text
#140E18
muted
#837E86

Preview Lab

Preview with #B873FA

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

Preview Lab → · Contrast checker → · Palette generator →

#B873FA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva