#8C2FC8#8C2FC8

#8C2FC8 is a mid, highly saturated violet. Relative luminance 0.118; OKLCH L 51.9% C 0.223 H 307.9°. Best body text is #FFFFFF at 6.26:1 contrast (WCAG AA passes).

Color values

HEX#8C2FC8
RGBrgb(140, 47, 200)
HSLhsl(276, 62%, 48%)
HSVhsv(276, 77%, 78%)
CMYKcmyk(30%, 76.5%, 0%, 21.6%)
CIE-LABlab(40.86, 63.08, -61.95)
CIE-LCHlch(40.86, 88.41, 315.52°)
OKLaboklab(51.87% 0.1369 -0.176)
OKLCHoklch(51.87% 0.223 307.9)
XYZxyz(22.2549, 11.7789, 55.7336)
Luminance0.1178 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C2FC8 #6BC82F
analogous
#402FC8 #8C2FC8 #C82FB7
triadic
#8C2FC8 #C88C2F #2FC88C
tetradic
#8C2FC8 #C8402F #6BC82F #2FB7C8
square
#8C2FC8 #C8402F #6BC82F #2FB7C8
split-complementary
#8C2FC8 #B7C82F #2FC840
monochromatic
#471865 #692396 #8C2FC8 #A85CD9 #C28DE4

Accessibility & contrast

On white

6.26
#8C2FC8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.36
#8C2FC8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8C2FC8
6.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C2FC8#FFFFFF#000000##FFFFFF
##8C2FC81.006.263.366.26
#FFFFFF6.261.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DCC
Deuteranopia (green-blind)
#0061C5
Tritanopia (blue-blind)
#82557B
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #8c2fc8;
/* rgb */ color: rgb(140, 47, 200);
/* oklch */ color: oklch(51.9% 0.223 307.9);
Tailwind
colors: {
  custom: {
    50: '#b372da',
    500: '#8c2fc8',
    950: '#000000',
  },
}
SCSS
$custom: #8c2fc8;
$custom-light: #b372da;
$custom-dark: #000000;
JSON
{
  "hex": "#8c2fc8",
  "rgb": {
    "r": 140,
    "g": 47,
    "b": 200
  },
  "hsl": {
    "h": 276.471,
    "s": 61.943,
    "l": 48.431
  },
  "oklch": {
    "l": 0.51866,
    "c": 0.22297,
    "h": 307.9
  },
  "luminance": 0.11779
}

Semantic roles & 50–950 ramp

primary
#8C2FC8
secondary
#A1CF84
accent
#E54382
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#120815
muted
#817B83

Preview Lab

Preview with #8C2FC8

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

Preview Lab → · Contrast checker → · Palette generator →

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