#8C2FC5#8C2FC5

#8C2FC5 is a mid, highly saturated violet. Relative luminance 0.116; OKLCH L 51.6% C 0.220 H 308.6°. Best body text is #FFFFFF at 6.31:1 contrast (WCAG AA passes).

Color values

HEX#8C2FC5
RGBrgb(140, 47, 197)
HSLhsl(277, 61%, 48%)
HSVhsv(277, 76%, 77%)
CMYKcmyk(28.9%, 76.1%, 0%, 22.7%)
CIE-LABlab(40.64, 62.43, -60.56)
CIE-LCHlch(40.64, 86.98, 315.87°)
OKLaboklab(51.64% 0.1375 -0.172)
OKLCHoklch(51.64% 0.22 308.6)
XYZxyz(21.9077, 11.6401, 53.9052)
Luminance0.1164 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C2FC5 #68C52F
analogous
#412FC5 #8C2FC5 #C52FB3
triadic
#8C2FC5 #C58C2F #2FC58C
tetradic
#8C2FC5 #C5412F #68C52F #2FB3C5
square
#8C2FC5 #C5412F #68C52F #2FB3C5
split-complementary
#8C2FC5 #B3C52F #2FC541
monochromatic
#461762 #692394 #8C2FC5 #A85AD8 #C28BE3

Accessibility & contrast

On white

6.31
#8C2FC5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.33
#8C2FC5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8C2FC5
6.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C2FC5#FFFFFF#000000##FFFFFF
##8C2FC51.006.313.336.31
#FFFFFF6.311.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CC9
Deuteranopia (green-blind)
#0061C2
Tritanopia (blue-blind)
#835479
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #8c2fc5;
/* rgb */ color: rgb(140, 47, 197);
/* oklch */ color: oklch(51.6% 0.220 308.6);
Tailwind
colors: {
  custom: {
    50: '#b372d7',
    500: '#8c2fc5',
    950: '#000000',
  },
}
SCSS
$custom: #8c2fc5;
$custom-light: #b372d7;
$custom-dark: #000000;
JSON
{
  "hex": "#8c2fc5",
  "rgb": {
    "r": 140,
    "g": 47,
    "b": 197
  },
  "hsl": {
    "h": 277.2,
    "s": 61.475,
    "l": 47.843
  },
  "oklch": {
    "l": 0.51638,
    "c": 0.22017,
    "h": 308.6
  },
  "luminance": 0.1164
}

Semantic roles & 50–950 ramp

primary
#8C2FC5
secondary
#9FCD82
accent
#E54381
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#120815
muted
#817B83

Preview Lab

Preview with #8C2FC5

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

Preview Lab → · Contrast checker → · Palette generator →

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