#8C2FB2#8C2FB2

#8C2FB2 is a mid, highly saturated purple. Relative luminance 0.108; OKLCH L 50.3% C 0.203 H 314.0°. Best body text is #FFFFFF at 6.64:1 contrast (WCAG AA passes).

Color values

HEX#8C2FB2
RGBrgb(140, 47, 178)
HSLhsl(283, 58%, 44%)
HSVhsv(283, 74%, 70%)
CMYKcmyk(21.3%, 73.6%, 0%, 30.2%)
CIE-LABlab(39.28, 58.45, -51.60)
CIE-LCHlch(39.28, 77.96, 318.56°)
OKLaboklab(50.25% 0.1407 -0.1456)
OKLCHoklch(50.25% 0.203 314)
XYZxyz(19.8662, 10.8235, 43.1535)
Luminance0.1082 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C2FB2 #55B22F
analogous
#4A2FB2 #8C2FB2 #B22F97
triadic
#8C2FB2 #B28C2F #2FB28C
tetradic
#8C2FB2 #B24A2F #55B22F #2F97B2
square
#8C2FB2 #B24A2F #55B22F #2F97B2
split-complementary
#8C2FB2 #97B22F #2FB24A
monochromatic
#401551 #662282 #8C2FB2 #AA4ED0 #C27EDD

Accessibility & contrast

On white

6.64
#8C2FB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.16
#8C2FB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8C2FB2
6.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C2FB2#FFFFFF#000000##FFFFFF
##8C2FB21.006.643.166.64
#FFFFFF6.641.0021.001.00
#0000003.1621.001.0021.00
##FFFFFF6.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058B6
Deuteranopia (green-blind)
#265FAF
Tritanopia (blue-blind)
#884C6E
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #8c2fb2;
/* rgb */ color: rgb(140, 47, 178);
/* oklch */ color: oklch(50.3% 0.203 314.0);
Tailwind
colors: {
  custom: {
    50: '#b271ca',
    500: '#8c2fb2',
    950: '#000000',
  },
}
SCSS
$custom: #8c2fb2;
$custom-light: #b271ca;
$custom-dark: #000000;
JSON
{
  "hex": "#8c2fb2",
  "rgb": {
    "r": 140,
    "g": 47,
    "b": 178
  },
  "hsl": {
    "h": 282.595,
    "s": 58.222,
    "l": 44.118
  },
  "oklch": {
    "l": 0.50252,
    "c": 0.2025,
    "h": 314
  },
  "luminance": 0.10823
}

Semantic roles & 50–950 ramp

primary
#8C2FB2
secondary
#8EC677
accent
#E14673
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110813
muted
#807B82

Preview Lab

Preview with #8C2FB2

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

Preview Lab → · Contrast checker → · Palette generator →

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