#872EBA#872EBA

#872EBA is a mid, highly saturated violet. Relative luminance 0.106; OKLCH L 50.1% C 0.209 H 309.7°. Best body text is #FFFFFF at 6.71:1 contrast (WCAG AA passes).

Color values

HEX#872EBA
RGBrgb(135, 46, 186)
HSLhsl(278, 60%, 45%)
HSVhsv(278, 75%, 73%)
CMYKcmyk(27.4%, 75.3%, 0%, 27.1%)
CIE-LABlab(38.99, 59.54, -56.84)
CIE-LCHlch(38.99, 82.31, 316.33°)
OKLaboklab(50.07% 0.1339 -0.1612)
OKLCHoklch(50.07% 0.21 309.7)
XYZxyz(19.8298, 10.6505, 47.4560)
Luminance0.1065 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#872EBA #61BA2E
analogous
#412EBA #872EBA #BA2EA7
triadic
#872EBA #BA872E #2EBA87
tetradic
#872EBA #BA412E #61BA2E #2EA7BA
square
#872EBA #BA412E #61BA2E #2EA7BA
split-complementary
#872EBA #A7BA2E #2EBA41
monochromatic
#401658 #632289 #872EBA #A451D4 #BE82E0

Accessibility & contrast

On white

6.71
#872EBA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#872EBA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #872EBA
6.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##872EBA#FFFFFF#000000##FFFFFF
##872EBA1.006.713.136.71
#FFFFFF6.711.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058BE
Deuteranopia (green-blind)
#025DB7
Tritanopia (blue-blind)
#804F72
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #872eba;
/* rgb */ color: rgb(135, 46, 186);
/* oklch */ color: oklch(50.1% 0.209 309.7);
Tailwind
colors: {
  custom: {
    50: '#af70d0',
    500: '#872eba',
    950: '#000000',
  },
}
SCSS
$custom: #872eba;
$custom-light: #af70d0;
$custom-dark: #000000;
JSON
{
  "hex": "#872eba",
  "rgb": {
    "r": 135,
    "g": 46,
    "b": 186
  },
  "hsl": {
    "h": 278.143,
    "s": 60.345,
    "l": 45.49
  },
  "oklch": {
    "l": 0.50071,
    "c": 0.2095,
    "h": 309.7
  },
  "luminance": 0.1065
}

Semantic roles & 50–950 ramp

primary
#872EBA
secondary
#97C97B
accent
#E3447E
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110814
muted
#807B82

Preview Lab

Preview with #872EBA

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

Preview Lab → · Contrast checker → · Palette generator →

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