#8C2FBA#8C2FBA

#8C2FBA is a mid, highly saturated purple. Relative luminance 0.112; OKLCH L 50.8% C 0.210 H 311.7°. Best body text is #FFFFFF at 6.50:1 contrast (WCAG AA passes).

Color values

HEX#8C2FBA
RGBrgb(140, 47, 186)
HSLhsl(280, 60%, 46%)
HSVhsv(280, 75%, 73%)
CMYKcmyk(24.7%, 74.7%, 0%, 27.1%)
CIE-LABlab(39.84, 60.11, -55.42)
CIE-LCHlch(39.84, 81.76, 317.32°)
OKLaboklab(50.82% 0.1395 -0.1568)
OKLCHoklch(50.82% 0.21 311.7)
XYZxyz(20.6930, 11.1542, 47.5078)
Luminance0.1115 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C2FBA #5DBA2F
analogous
#462FBA #8C2FBA #BA2FA2
triadic
#8C2FBA #BA8C2F #2FBA8C
tetradic
#8C2FBA #BA462F #5DBA2F #2FA2BA
square
#8C2FBA #BA462F #5DBA2F #2FA2BA
split-complementary
#8C2FBA #A2BA2F #2FBA46
monochromatic
#421658 #672389 #8C2FBA #A953D3 #C184E0

Accessibility & contrast

On white

6.50
#8C2FBA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.23
#8C2FBA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8C2FBA
6.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C2FBA#FFFFFF#000000##FFFFFF
##8C2FBA1.006.503.236.50
#FFFFFF6.501.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ABE
Deuteranopia (green-blind)
#1860B7
Tritanopia (blue-blind)
#864F73
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #8c2fba;
/* rgb */ color: rgb(140, 47, 186);
/* oklch */ color: oklch(50.8% 0.210 311.7);
Tailwind
colors: {
  custom: {
    50: '#b271d0',
    500: '#8c2fba',
    950: '#000000',
  },
}
SCSS
$custom: #8c2fba;
$custom-light: #b271d0;
$custom-dark: #000000;
JSON
{
  "hex": "#8c2fba",
  "rgb": {
    "r": 140,
    "g": 47,
    "b": 186
  },
  "hsl": {
    "h": 280.144,
    "s": 59.657,
    "l": 45.686
  },
  "oklch": {
    "l": 0.50823,
    "c": 0.20991,
    "h": 311.7
  },
  "luminance": 0.11154
}

Semantic roles & 50–950 ramp

primary
#8C2FBA
secondary
#95C97C
accent
#E34579
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110814
muted
#807B82

Preview Lab

Preview with #8C2FBA

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

Preview Lab → · Contrast checker → · Palette generator →

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