#8C2FB9#8C2FB9

#8C2FB9 is a mid, highly saturated purple. Relative luminance 0.111; OKLCH L 50.8% C 0.209 H 311.9°. Best body text is #FFFFFF at 6.52:1 contrast (WCAG AA passes).

Color values

HEX#8C2FB9
RGBrgb(140, 47, 185)
HSLhsl(280, 59%, 45%)
HSVhsv(280, 75%, 73%)
CMYKcmyk(24.3%, 74.6%, 0%, 27.5%)
CIE-LABlab(39.77, 59.90, -54.94)
CIE-LCHlch(39.77, 81.28, 317.47°)
OKLaboklab(50.75% 0.1397 -0.1554)
OKLCHoklch(50.75% 0.209 311.9)
XYZxyz(20.5871, 11.1118, 46.9498)
Luminance0.1111 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C2FB9 #5CB92F
analogous
#472FB9 #8C2FB9 #B92FA1
triadic
#8C2FB9 #B98C2F #2FB98C
tetradic
#8C2FB9 #B9472F #5CB92F #2FA1B9
square
#8C2FB9 #B9472F #5CB92F #2FA1B9
split-complementary
#8C2FB9 #A1B92F #2FB947
monochromatic
#421657 #672388 #8C2FB9 #A952D3 #C183DF

Accessibility & contrast

On white

6.52
#8C2FB9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.22
#8C2FB9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8C2FB9
6.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C2FB9#FFFFFF#000000##FFFFFF
##8C2FB91.006.523.226.52
#FFFFFF6.521.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059BD
Deuteranopia (green-blind)
#1A5FB6
Tritanopia (blue-blind)
#874F72
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #8c2fb9;
/* rgb */ color: rgb(140, 47, 185);
/* oklch */ color: oklch(50.8% 0.209 311.9);
Tailwind
colors: {
  custom: {
    50: '#b271cf',
    500: '#8c2fb9',
    950: '#000000',
  },
}
SCSS
$custom: #8c2fb9;
$custom-light: #b271cf;
$custom-dark: #000000;
JSON
{
  "hex": "#8c2fb9",
  "rgb": {
    "r": 140,
    "g": 47,
    "b": 185
  },
  "hsl": {
    "h": 280.435,
    "s": 59.483,
    "l": 45.49
  },
  "oklch": {
    "l": 0.50751,
    "c": 0.20899,
    "h": 311.9
  },
  "luminance": 0.11111
}

Semantic roles & 50–950 ramp

primary
#8C2FB9
secondary
#94C97B
accent
#E34579
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110814
muted
#807B82

Preview Lab

Preview with #8C2FB9

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

Preview Lab → · Contrast checker → · Palette generator →

#8C2FB9 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva