#872FBD#872FBD

#872FBD is a mid, highly saturated violet. Relative luminance 0.109; OKLCH L 50.4% C 0.211 H 308.8°. Best body text is #FFFFFF at 6.62:1 contrast (WCAG AA passes).

Color values

HEX#872FBD
RGBrgb(135, 47, 189)
HSLhsl(277, 60%, 46%)
HSVhsv(277, 75%, 74%)
CMYKcmyk(28.6%, 75.1%, 0%, 25.9%)
CIE-LABlab(39.34, 59.80, -58.02)
CIE-LCHlch(39.34, 83.32, 315.87°)
OKLaboklab(50.39% 0.1324 -0.1647)
OKLCHoklch(50.39% 0.211 308.8)
XYZxyz(20.1916, 10.8584, 49.1664)
Luminance0.1086 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#872FBD #65BD2F
analogous
#402FBD #872FBD #BD2FAC
triadic
#872FBD #BD872F #2FBD87
tetradic
#872FBD #BD402F #65BD2F #2FACBD
square
#872FBD #BD402F #65BD2F #2FACBD
split-complementary
#872FBD #ACBD2F #2FBD40
monochromatic
#41175B #64238C #872FBD #A455D5 #BE86E1

Accessibility & contrast

On white

6.62
#872FBD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.17
#872FBD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #872FBD
6.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##872FBD#FFFFFF#000000##FFFFFF
##872FBD1.006.623.176.62
#FFFFFF6.621.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059C1
Deuteranopia (green-blind)
#005EBA
Tritanopia (blue-blind)
#7F5174
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #872fbd;
/* rgb */ color: rgb(135, 47, 189);
/* oklch */ color: oklch(50.4% 0.211 308.8);
Tailwind
colors: {
  custom: {
    50: '#af71d2',
    500: '#872fbd',
    950: '#000000',
  },
}
SCSS
$custom: #872fbd;
$custom-light: #af71d2;
$custom-dark: #000000;
JSON
{
  "hex": "#872fbd",
  "rgb": {
    "r": 135,
    "g": 47,
    "b": 189
  },
  "hsl": {
    "h": 277.183,
    "s": 60.169,
    "l": 46.275
  },
  "oklch": {
    "l": 0.50392,
    "c": 0.21128,
    "h": 308.8
  },
  "luminance": 0.10858
}

Semantic roles & 50–950 ramp

primary
#872FBD
secondary
#9BCA7E
accent
#E34481
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#110814
muted
#807B83

Preview Lab

Preview with #872FBD

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

Preview Lab → · Contrast checker → · Palette generator →

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