#873DC8#873DC8

#873DC8 is a mid, highly saturated violet. Relative luminance 0.127; OKLCH L 52.7% C 0.206 H 304.6°. Best body text is #FFFFFF at 5.95:1 contrast (WCAG AA passes).

Color values

HEX#873DC8
RGBrgb(135, 61, 200)
HSLhsl(272, 56%, 51%)
HSVhsv(272, 70%, 78%)
CMYKcmyk(32.5%, 69.5%, 0%, 21.6%)
CIE-LABlab(42.24, 56.33, -59.74)
CIE-LCHlch(42.24, 82.11, 313.32°)
OKLaboklab(52.7% 0.1169 -0.1698)
OKLCHoklch(52.7% 0.206 304.6)
XYZxyz(22.0834, 12.6586, 55.9123)
Luminance0.1266 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#873DC8 #7EC83D
analogous
#413DC8 #873DC8 #C83DC4
triadic
#873DC8 #C8873D #3DC887
tetradic
#873DC8 #C8413D #7EC83D #3DC4C8
square
#873DC8 #C8413D #7EC83D #3DC4C8
split-complementary
#873DC8 #C4C83D #3DC841
monochromatic
#481F6C #682C9C #873DC8 #A46DD6 #C29CE3

Accessibility & contrast

On white

5.95
#873DC8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#873DC8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #873DC8
5.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##873DC8#FFFFFF#000000##FFFFFF
##873DC81.005.953.535.95
#FFFFFF5.951.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062CC
Deuteranopia (green-blind)
#0064C5
Tritanopia (blue-blind)
#7B5D7E
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #873dc8;
/* rgb */ color: rgb(135, 61, 200);
/* oklch */ color: oklch(52.7% 0.206 304.6);
Tailwind
colors: {
  custom: {
    50: '#af78da',
    500: '#873dc8',
    950: '#000000',
  },
}
SCSS
$custom: #873dc8;
$custom-light: #af78da;
$custom-dark: #000000;
JSON
{
  "hex": "#873dc8",
  "rgb": {
    "r": 135,
    "g": 61,
    "b": 200
  },
  "hsl": {
    "h": 271.942,
    "s": 55.823,
    "l": 51.176
  },
  "oklch": {
    "l": 0.52702,
    "c": 0.20614,
    "h": 304.6
  },
  "luminance": 0.12659
}

Semantic roles & 50–950 ramp

primary
#873DC8
secondary
#AECF92
accent
#DF498F
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110915
muted
#807B83

Preview Lab

Preview with #873DC8

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

Preview Lab → · Contrast checker → · Palette generator →

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