#8C2FBB#8C2FBB

#8C2FBB is a mid, highly saturated violet. Relative luminance 0.112; OKLCH L 50.9% C 0.211 H 311.4°. Best body text is #FFFFFF at 6.48:1 contrast (WCAG AA passes).

Color values

HEX#8C2FBB
RGBrgb(140, 47, 187)
HSLhsl(280, 60%, 46%)
HSVhsv(280, 75%, 73%)
CMYKcmyk(25.1%, 74.9%, 0%, 26.7%)
CIE-LABlab(39.91, 60.32, -55.89)
CIE-LCHlch(39.91, 82.23, 317.18°)
OKLaboklab(50.9% 0.1394 -0.1582)
OKLCHoklch(50.9% 0.211 311.4)
XYZxyz(20.7997, 11.1969, 48.0696)
Luminance0.1120 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C2FBB #5EBB2F
analogous
#462FBB #8C2FBB #BB2FA4
triadic
#8C2FBB #BB8C2F #2FBB8C
tetradic
#8C2FBB #BB462F #5EBB2F #2FA4BB
square
#8C2FBB #BB462F #5EBB2F #2FA4BB
split-complementary
#8C2FBB #A4BB2F #2FBB46
monochromatic
#431659 #67238A #8C2FBB #A953D4 #C184E0

Accessibility & contrast

On white

6.48
#8C2FBB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.24
#8C2FBB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8C2FBB
6.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C2FBB#FFFFFF#000000##FFFFFF
##8C2FBB1.006.483.246.48
#FFFFFF6.481.0021.001.00
#0000003.2421.001.0021.00
##FFFFFF6.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ABF
Deuteranopia (green-blind)
#1560B8
Tritanopia (blue-blind)
#865073
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #8c2fbb;
/* rgb */ color: rgb(140, 47, 187);
/* oklch */ color: oklch(50.9% 0.211 311.4);
Tailwind
colors: {
  custom: {
    50: '#b271d0',
    500: '#8c2fbb',
    950: '#000000',
  },
}
SCSS
$custom: #8c2fbb;
$custom-light: #b271d0;
$custom-dark: #000000;
JSON
{
  "hex": "#8c2fbb",
  "rgb": {
    "r": 140,
    "g": 47,
    "b": 187
  },
  "hsl": {
    "h": 279.857,
    "s": 59.829,
    "l": 45.882
  },
  "oklch": {
    "l": 0.50896,
    "c": 0.21084,
    "h": 311.4
  },
  "luminance": 0.11196
}

Semantic roles & 50–950 ramp

primary
#8C2FBB
secondary
#96C97C
accent
#E3457A
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110814
muted
#807B82

Preview Lab

Preview with #8C2FBB

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

Preview Lab → · Contrast checker → · Palette generator →

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