#8C2FBD#8C2FBD

#8C2FBD is a mid, highly saturated violet. Relative luminance 0.113; OKLCH L 51.0% C 0.213 H 310.8°. Best body text is #FFFFFF at 6.45:1 contrast (WCAG AA passes).

Color values

HEX#8C2FBD
RGBrgb(140, 47, 189)
HSLhsl(279, 60%, 46%)
HSVhsv(279, 75%, 74%)
CMYKcmyk(25.9%, 75.1%, 0%, 25.9%)
CIE-LABlab(40.05, 60.74, -56.83)
CIE-LCHlch(40.05, 83.18, 316.90°)
OKLaboklab(51.04% 0.139 -0.161)
OKLCHoklch(51.04% 0.213 310.8)
XYZxyz(21.0153, 11.2831, 49.2050)
Luminance0.1128 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C2FBD #60BD2F
analogous
#452FBD #8C2FBD #BD2FA7
triadic
#8C2FBD #BD8C2F #2FBD8C
tetradic
#8C2FBD #BD452F #60BD2F #2FA7BD
square
#8C2FBD #BD452F #60BD2F #2FA7BD
split-complementary
#8C2FBD #A7BD2F #2FBD45
monochromatic
#43175B #68238C #8C2FBD #A855D5 #C186E1

Accessibility & contrast

On white

6.45
#8C2FBD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.26
#8C2FBD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8C2FBD
6.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C2FBD#FFFFFF#000000##FFFFFF
##8C2FBD1.006.453.266.45
#FFFFFF6.451.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AC1
Deuteranopia (green-blind)
#0F60BA
Tritanopia (blue-blind)
#855074
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #8c2fbd;
/* rgb */ color: rgb(140, 47, 189);
/* oklch */ color: oklch(51.0% 0.213 310.8);
Tailwind
colors: {
  custom: {
    50: '#b271d2',
    500: '#8c2fbd',
    950: '#000000',
  },
}
SCSS
$custom: #8c2fbd;
$custom-light: #b271d2;
$custom-dark: #000000;
JSON
{
  "hex": "#8c2fbd",
  "rgb": {
    "r": 140,
    "g": 47,
    "b": 189
  },
  "hsl": {
    "h": 279.296,
    "s": 60.169,
    "l": 46.275
  },
  "oklch": {
    "l": 0.51042,
    "c": 0.21271,
    "h": 310.8
  },
  "luminance": 0.11283
}

Semantic roles & 50–950 ramp

primary
#8C2FBD
secondary
#98CA7E
accent
#E3447B
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#110814
muted
#807B83

Preview Lab

Preview with #8C2FBD

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

Preview Lab → · Contrast checker → · Palette generator →

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