#8C2FB4#8C2FB4

#8C2FB4 is a mid, highly saturated purple. Relative luminance 0.109; OKLCH L 50.4% C 0.204 H 313.4°. Best body text is #FFFFFF at 6.60:1 contrast (WCAG AA passes).

Color values

HEX#8C2FB4
RGBrgb(140, 47, 180)
HSLhsl(282, 59%, 45%)
HSVhsv(282, 74%, 71%)
CMYKcmyk(22.2%, 73.9%, 0%, 29.4%)
CIE-LABlab(39.42, 58.86, -52.56)
CIE-LCHlch(39.42, 78.91, 318.24°)
OKLaboklab(50.39% 0.1405 -0.1484)
OKLCHoklch(50.39% 0.204 313.4)
XYZxyz(20.0685, 10.9044, 44.2188)
Luminance0.1090 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C2FB4 #57B42F
analogous
#4A2FB4 #8C2FB4 #B42F9A
triadic
#8C2FB4 #B48C2F #2FB48C
tetradic
#8C2FB4 #B44A2F #57B42F #2F9AB4
square
#8C2FB4 #B44A2F #57B42F #2F9AB4
split-complementary
#8C2FB4 #9AB42F #2FB44A
monochromatic
#411653 #662283 #8C2FB4 #AA4FD1 #C180DE

Accessibility & contrast

On white

6.60
#8C2FB4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.18
#8C2FB4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8C2FB4
6.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C2FB4#FFFFFF#000000##FFFFFF
##8C2FB41.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)
#0058B8
Deuteranopia (green-blind)
#235FB1
Tritanopia (blue-blind)
#884D6F
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #8c2fb4;
/* rgb */ color: rgb(140, 47, 180);
/* oklch */ color: oklch(50.4% 0.204 313.4);
Tailwind
colors: {
  custom: {
    50: '#b271cb',
    500: '#8c2fb4',
    950: '#000000',
  },
}
SCSS
$custom: #8c2fb4;
$custom-light: #b271cb;
$custom-dark: #000000;
JSON
{
  "hex": "#8c2fb4",
  "rgb": {
    "r": 140,
    "g": 47,
    "b": 180
  },
  "hsl": {
    "h": 281.955,
    "s": 58.59,
    "l": 44.51
  },
  "oklch": {
    "l": 0.50393,
    "c": 0.20435,
    "h": 313.4
  },
  "luminance": 0.10904
}

Semantic roles & 50–950 ramp

primary
#8C2FB4
secondary
#90C778
accent
#E24675
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110813
muted
#807B82

Preview Lab

Preview with #8C2FB4

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

Preview Lab → · Contrast checker → · Palette generator →

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