#B873F8#B873F8

#B873F8 is a light, vivid violet. Relative luminance 0.292; OKLCH L 68.5% C 0.196 H 305.8°. Best body text is #000000 at 6.85:1 contrast (WCAG AA passes).

Color values

HEX#B873F8
RGBrgb(184, 115, 248)
HSLhsl(271, 90%, 71%)
HSVhsv(271, 54%, 97%)
CMYKcmyk(25.8%, 53.6%, 0%, 2.7%)
CIE-LABlab(60.98, 51.53, -56.47)
CIE-LCHlch(60.98, 76.44, 312.38°)
OKLaboklab(68.53% 0.1147 -0.1589)
OKLCHoklch(68.53% 0.196 305.8)
XYZxyz(42.8376, 29.2295, 92.1738)
Luminance0.2923 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B873F8 #B3F873
analogous
#7573F8 #B873F8 #F873F5
triadic
#B873F8 #F8B873 #73F8B8
tetradic
#B873F8 #F87573 #B3F873 #73F5F8
square
#B873F8 #F87573 #B3F873 #73F5F8
split-complementary
#B873F8 #F5F873 #73F875
monochromatic
#7C0BE5 #9A39F5 #B873F8 #D6ADFB #F0E2FE

Accessibility & contrast

On white

3.07
#B873F8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.85
#B873F8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B873F8
6.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B873F8#FFFFFF#000000##000000
##B873F81.003.076.856.85
#FFFFFF3.071.0021.0021.00
#0000006.8521.001.001.00
##0000006.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#4691FC
Deuteranopia (green-blind)
#5D94F5
Tritanopia (blue-blind)
#AE8CAB
Achromatopsia (no color)
#939393

Design tokens & code

CSS
--color: #b873f8;
/* rgb */ color: rgb(184, 115, 248);
/* oklch */ color: oklch(68.5% 0.196 305.8);
Tailwind
colors: {
  custom: {
    50: '#d09dfb',
    500: '#b873f8',
    950: '#000000',
  },
}
SCSS
$custom: #b873f8;
$custom-light: #d09dfb;
$custom-dark: #000000;
JSON
{
  "hex": "#b873f8",
  "rgb": {
    "r": 184,
    "g": 115,
    "b": 248
  },
  "hsl": {
    "h": 271.128,
    "s": 90.476,
    "l": 71.176
  },
  "oklch": {
    "l": 0.6853,
    "c": 0.19594,
    "h": 305.8
  },
  "luminance": 0.29229
}

Semantic roles & 50–950 ramp

primary
#B873F8
secondary
#E3F5D2
accent
#E6006E
background
#FDF9FF
surface
#FAF2FF
border
#D3CCD7
text
#140E17
muted
#837E85

Preview Lab

Preview with #B873F8

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

Preview Lab → · Contrast checker → · Palette generator →

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