#B873F2#B873F2

#B873F2 is a light, vivid violet. Relative luminance 0.289; OKLCH L 68.2% C 0.189 H 307.2°. Best body text is #000000 at 6.77:1 contrast (WCAG AA passes).

Color values

HEX#B873F2
RGBrgb(184, 115, 242)
HSLhsl(273, 83%, 70%)
HSVhsv(273, 52%, 95%)
CMYKcmyk(24%, 52.5%, 0%, 5.1%)
CIE-LABlab(60.66, 50.17, -53.66)
CIE-LCHlch(60.66, 73.46, 313.07°)
OKLaboklab(68.19% 0.1143 -0.1507)
OKLCHoklch(68.19% 0.189 307.2)
XYZxyz(41.9217, 28.8631, 87.3499)
Luminance0.2886 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B873F2 #ADF273
analogous
#7873F2 #B873F2 #F273ED
triadic
#B873F2 #F2B873 #73F2B8
tetradic
#B873F2 #F27873 #ADF273 #73EDF2
square
#B873F2 #F27873 #ADF273 #73EDF2
split-complementary
#B873F2 #EDF273 #73F278
monochromatic
#7E14D7 #9C3BED #B873F2 #D4ABF7 #F1E3FC

Accessibility & contrast

On white

3.10
#B873F2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.77
#B873F2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B873F2
6.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B873F2#FFFFFF#000000##000000
##B873F21.003.106.776.77
#FFFFFF3.101.0021.0021.00
#0000006.7721.001.001.00
##0000006.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#4C90F6
Deuteranopia (green-blind)
#6293EF
Tritanopia (blue-blind)
#AF8AA8
Achromatopsia (no color)
#929292

Design tokens & code

CSS
--color: #b873f2;
/* rgb */ color: rgb(184, 115, 242);
/* oklch */ color: oklch(68.2% 0.189 307.2);
Tailwind
colors: {
  custom: {
    50: '#d09df7',
    500: '#b873f2',
    950: '#000000',
  },
}
SCSS
$custom: #b873f2;
$custom-light: #d09df7;
$custom-dark: #000000;
JSON
{
  "hex": "#b873f2",
  "rgb": {
    "r": 184,
    "g": 115,
    "b": 242
  },
  "hsl": {
    "h": 272.598,
    "s": 83.007,
    "l": 70
  },
  "oklch": {
    "l": 0.68187,
    "c": 0.18914,
    "h": 307.2
  },
  "luminance": 0.28863
}

Semantic roles & 50–950 ramp

primary
#B873F2
secondary
#DFF2CF
accent
#DF0669
background
#FDF9FF
surface
#FAF2FF
border
#D3CCD7
text
#140E17
muted
#837E85

Preview Lab

Preview with #B873F2

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

Preview Lab → · Contrast checker → · Palette generator →

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