#873ED4#873ED4

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

Color values

HEX#873ED4
RGBrgb(135, 62, 212)
HSLhsl(269, 64%, 54%)
HSVhsv(269, 71%, 83%)
CMYKcmyk(36.3%, 70.8%, 0%, 16.9%)
CIE-LABlab(43.29, 58.70, -64.98)
CIE-LCHlch(43.29, 87.57, 312.10°)
OKLaboklab(53.72% 0.114 -0.1852)
OKLCHoklch(53.72% 0.217 301.6)
XYZxyz(23.5951, 13.3495, 63.6082)
Luminance0.1335 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#873ED4 #8BD43E
analogous
#3E40D4 #873ED4 #D23ED4
triadic
#873ED4 #D4873E #3ED487
tetradic
#873ED4 #D43E40 #8BD43E #3ED4D2
square
#873ED4 #D43E40 #8BD43E #3ED4D2
split-complementary
#873ED4 #D4D23E #40D43E
monochromatic
#4B1C7C #6927AE #873ED4 #A670DF #C5A2EA

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##873ED4#FFFFFF#000000##FFFFFF
##873ED41.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)
#0065D8
Deuteranopia (green-blind)
#0065D1
Tritanopia (blue-blind)
#766285
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #873ed4;
/* rgb */ color: rgb(135, 62, 212);
/* oklch */ color: oklch(53.7% 0.217 301.6);
Tailwind
colors: {
  custom: {
    50: '#b079e2',
    500: '#873ed4',
    950: '#000000',
  },
}
SCSS
$custom: #873ed4;
$custom-light: #b079e2;
$custom-dark: #000000;
JSON
{
  "hex": "#873ed4",
  "rgb": {
    "r": 135,
    "g": 62,
    "b": 212
  },
  "hsl": {
    "h": 269.2,
    "s": 63.559,
    "l": 53.725
  },
  "oklch": {
    "l": 0.53719,
    "c": 0.21747,
    "h": 301.6
  },
  "luminance": 0.1335
}

Semantic roles & 50–950 ramp

primary
#873ED4
secondary
#B8D797
accent
#E74196
background
#FBF7FE
surface
#F6EEFC
border
#D0C9D5
text
#110915
muted
#807B84

Preview Lab

Preview with #873ED4

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

Preview Lab → · Contrast checker → · Palette generator →

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