#872FBE#872FBE

#872FBE is a mid, highly saturated violet. Relative luminance 0.109; OKLCH L 50.5% C 0.212 H 308.5°. Best body text is #FFFFFF at 6.60:1 contrast (WCAG AA passes).

Color values

HEX#872FBE
RGBrgb(135, 47, 190)
HSLhsl(277, 60%, 46%)
HSVhsv(277, 75%, 75%)
CMYKcmyk(28.9%, 75.3%, 0%, 25.5%)
CIE-LABlab(39.41, 60.02, -58.49)
CIE-LCHlch(39.41, 83.81, 315.74°)
OKLaboklab(50.47% 0.1322 -0.166)
OKLCHoklch(50.47% 0.212 308.5)
XYZxyz(20.3005, 10.9020, 49.7401)
Luminance0.1090 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#872FBE #66BE2F
analogous
#3F2FBE #872FBE #BE2FAE
triadic
#872FBE #BE872F #2FBE87
tetradic
#872FBE #BE3F2F #66BE2F #2FAEBE
square
#872FBE #BE3F2F #66BE2F #2FAEBE
split-complementary
#872FBE #AEBE2F #2FBE3F
monochromatic
#41175C #64238D #872FBE #A455D5 #BE86E1

Accessibility & contrast

On white

6.60
#872FBE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.18
#872FBE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #872FBE
6.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##872FBE#FFFFFF#000000##FFFFFF
##872FBE1.006.603.186.60
#FFFFFF6.601.0021.001.00
#0000003.1821.001.0021.00
##FFFFFF6.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AC2
Deuteranopia (green-blind)
#005EBB
Tritanopia (blue-blind)
#7E5275
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #872fbe;
/* rgb */ color: rgb(135, 47, 190);
/* oklch */ color: oklch(50.5% 0.212 308.5);
Tailwind
colors: {
  custom: {
    50: '#af71d2',
    500: '#872fbe',
    950: '#000000',
  },
}
SCSS
$custom: #872fbe;
$custom-light: #af71d2;
$custom-dark: #000000;
JSON
{
  "hex": "#872fbe",
  "rgb": {
    "r": 135,
    "g": 47,
    "b": 190
  },
  "hsl": {
    "h": 276.923,
    "s": 60.338,
    "l": 46.471
  },
  "oklch": {
    "l": 0.50467,
    "c": 0.21223,
    "h": 308.5
  },
  "luminance": 0.10902
}

Semantic roles & 50–950 ramp

primary
#872FBE
secondary
#9CCB7E
accent
#E34482
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#110814
muted
#807B83

Preview Lab

Preview with #872FBE

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

Preview Lab → · Contrast checker → · Palette generator →

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