#8C2FB3#8C2FB3

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

Color values

HEX#8C2FB3
RGBrgb(140, 47, 179)
HSLhsl(282, 58%, 44%)
HSVhsv(282, 74%, 70%)
CMYKcmyk(21.8%, 73.7%, 0%, 29.8%)
CIE-LABlab(39.35, 58.65, -52.08)
CIE-LCHlch(39.35, 78.44, 318.40°)
OKLaboklab(50.32% 0.1406 -0.147)
OKLCHoklch(50.32% 0.203 313.7)
XYZxyz(19.9670, 10.8638, 43.6842)
Luminance0.1086 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C2FB3 #56B32F
analogous
#4A2FB3 #8C2FB3 #B32F98
triadic
#8C2FB3 #B38C2F #2FB38C
tetradic
#8C2FB3 #B34A2F #56B32F #2F98B3
square
#8C2FB3 #B34A2F #56B32F #2F98B3
split-complementary
#8C2FB3 #98B32F #2FB34A
monochromatic
#401652 #662283 #8C2FB3 #AA4FD1 #C27FDD

Accessibility & contrast

On white

6.62
#8C2FB3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.17
#8C2FB3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8C2FB3
6.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C2FB3#FFFFFF#000000##FFFFFF
##8C2FB31.006.623.176.62
#FFFFFF6.621.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058B7
Deuteranopia (green-blind)
#245FB0
Tritanopia (blue-blind)
#884C6F
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #8c2fb3;
/* rgb */ color: rgb(140, 47, 179);
/* oklch */ color: oklch(50.3% 0.203 313.7);
Tailwind
colors: {
  custom: {
    50: '#b271ca',
    500: '#8c2fb3',
    950: '#000000',
  },
}
SCSS
$custom: #8c2fb3;
$custom-light: #b271ca;
$custom-dark: #000000;
JSON
{
  "hex": "#8c2fb3",
  "rgb": {
    "r": 140,
    "g": 47,
    "b": 179
  },
  "hsl": {
    "h": 282.273,
    "s": 58.407,
    "l": 44.314
  },
  "oklch": {
    "l": 0.50322,
    "c": 0.20342,
    "h": 313.7
  },
  "luminance": 0.10863
}

Semantic roles & 50–950 ramp

primary
#8C2FB3
secondary
#8FC678
accent
#E24674
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110813
muted
#807B82

Preview Lab

Preview with #8C2FB3

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

Preview Lab → · Contrast checker → · Palette generator →

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