#872FC2#872FC2

#872FC2 is a mid, highly saturated violet. Relative luminance 0.111; OKLCH L 50.8% C 0.216 H 307.5°. Best body text is #FFFFFF at 6.53:1 contrast (WCAG AA passes).

Color values

HEX#872FC2
RGBrgb(135, 47, 194)
HSLhsl(276, 61%, 47%)
HSVhsv(276, 76%, 76%)
CMYKcmyk(30.4%, 75.8%, 0%, 23.9%)
CIE-LABlab(39.71, 60.89, -60.35)
CIE-LCHlch(39.71, 85.73, 315.26°)
OKLaboklab(50.77% 0.1314 -0.1715)
OKLCHoklch(50.77% 0.216 307.5)
XYZxyz(20.7437, 11.0793, 52.0742)
Luminance0.1108 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#872FC2 #6AC22F
analogous
#3D2FC2 #872FC2 #C22FB4
triadic
#872FC2 #C2872F #2FC287
tetradic
#872FC2 #C23D2F #6AC22F #2FB4C2
square
#872FC2 #C23D2F #6AC22F #2FB4C2
split-complementary
#872FC2 #B4C22F #2FC23D
monochromatic
#42175F #652391 #872FC2 #A458D6 #BF89E2

Accessibility & contrast

On white

6.53
#872FC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.22
#872FC2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #872FC2
6.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##872FC2#FFFFFF#000000##FFFFFF
##872FC21.006.533.226.53
#FFFFFF6.531.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BC6
Deuteranopia (green-blind)
#005EBF
Tritanopia (blue-blind)
#7D5377
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #872fc2;
/* rgb */ color: rgb(135, 47, 194);
/* oklch */ color: oklch(50.8% 0.216 307.5);
Tailwind
colors: {
  custom: {
    50: '#af71d5',
    500: '#872fc2',
    950: '#000000',
  },
}
SCSS
$custom: #872fc2;
$custom-light: #af71d5;
$custom-dark: #000000;
JSON
{
  "hex": "#872fc2",
  "rgb": {
    "r": 135,
    "g": 47,
    "b": 194
  },
  "hsl": {
    "h": 275.918,
    "s": 60.996,
    "l": 47.255
  },
  "oklch": {
    "l": 0.50771,
    "c": 0.21604,
    "h": 307.5
  },
  "luminance": 0.11079
}

Semantic roles & 50–950 ramp

primary
#872FC2
secondary
#9FCC81
accent
#E44484
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#110814
muted
#807B83

Preview Lab

Preview with #872FC2

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

Preview Lab → · Contrast checker → · Palette generator →

#872FC2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva