#873FD2#873FD2

#873FD2 is a mid, highly saturated violet. Relative luminance 0.134; OKLCH L 53.7% C 0.214 H 302.0°. Best body text is #FFFFFF at 5.72:1 contrast (WCAG AA passes).

Color values

HEX#873FD2
RGBrgb(135, 63, 210)
HSLhsl(269, 62%, 54%)
HSVhsv(269, 70%, 82%)
CMYKcmyk(35.7%, 70%, 0%, 17.6%)
CIE-LABlab(43.30, 57.77, -63.80)
CIE-LCHlch(43.30, 86.07, 312.16°)
OKLaboklab(53.68% 0.1134 -0.1817)
OKLCHoklch(53.68% 0.214 302)
XYZxyz(23.3993, 13.3590, 62.3061)
Luminance0.1336 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#873FD2 #8AD23F
analogous
#3F40D2 #873FD2 #D03FD2
triadic
#873FD2 #D2873F #3FD287
tetradic
#873FD2 #D23F40 #8AD23F #3FD2D0
square
#873FD2 #D23F40 #8AD23F #3FD2D0
split-complementary
#873FD2 #D2D03F #40D23F
monochromatic
#4A1D7A #6928AC #873FD2 #A671DE #C5A2E9

Accessibility & contrast

On white

5.72
#873FD2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.67
#873FD2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #873FD2
5.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##873FD2#FFFFFF#000000##FFFFFF
##873FD21.005.723.675.72
#FFFFFF5.721.0021.001.00
#0000003.6721.001.0021.00
##FFFFFF5.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065D6
Deuteranopia (green-blind)
#0066CF
Tritanopia (blue-blind)
#776284
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #873fd2;
/* rgb */ color: rgb(135, 63, 210);
/* oklch */ color: oklch(53.7% 0.214 302.0);
Tailwind
colors: {
  custom: {
    50: '#b07ae1',
    500: '#873fd2',
    950: '#000000',
  },
}
SCSS
$custom: #873fd2;
$custom-light: #b07ae1;
$custom-dark: #000000;
JSON
{
  "hex": "#873fd2",
  "rgb": {
    "r": 135,
    "g": 63,
    "b": 210
  },
  "hsl": {
    "h": 269.388,
    "s": 62.025,
    "l": 53.529
  },
  "oklch": {
    "l": 0.53682,
    "c": 0.2142,
    "h": 302
  },
  "luminance": 0.13359
}

Semantic roles & 50–950 ramp

primary
#873FD2
secondary
#B7D697
accent
#E54396
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #873FD2

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

Preview Lab → · Contrast checker → · Palette generator →

#873FD2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva