#8C2FAF#8C2FAF

#8C2FAF is a mid, vivid purple. Relative luminance 0.107; OKLCH L 50.0% C 0.200 H 315.0°. Best body text is #FFFFFF at 6.69:1 contrast (WCAG AA passes).

Color values

HEX#8C2FAF
RGBrgb(140, 47, 175)
HSLhsl(284, 58%, 44%)
HSVhsv(284, 73%, 69%)
CMYKcmyk(20%, 73.1%, 0%, 31.4%)
CIE-LABlab(39.08, 57.84, -50.14)
CIE-LCHlch(39.08, 76.55, 319.07°)
OKLaboklab(50.04% 0.1411 -0.1413)
OKLCHoklch(50.04% 0.2 315)
XYZxyz(19.5683, 10.7043, 41.5845)
Luminance0.1070 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C2FAF #52AF2F
analogous
#4C2FAF #8C2FAF #AF2F92
triadic
#8C2FAF #AF8C2F #2FAF8C
tetradic
#8C2FAF #AF4C2F #52AF2F #2F92AF
square
#8C2FAF #AF4C2F #52AF2F #2F92AF
split-complementary
#8C2FAF #92AF2F #2FAF4C
monochromatic
#3F154F #65227F #8C2FAF #AB4CCF #C27CDC

Accessibility & contrast

On white

6.69
#8C2FAF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#8C2FAF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8C2FAF
6.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C2FAF#FFFFFF#000000##FFFFFF
##8C2FAF1.006.693.146.69
#FFFFFF6.691.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057B3
Deuteranopia (green-blind)
#2A5EAC
Tritanopia (blue-blind)
#894A6C
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #8c2faf;
/* rgb */ color: rgb(140, 47, 175);
/* oklch */ color: oklch(50.0% 0.200 315.0);
Tailwind
colors: {
  custom: {
    50: '#b271c8',
    500: '#8c2faf',
    950: '#000000',
  },
}
SCSS
$custom: #8c2faf;
$custom-light: #b271c8;
$custom-dark: #000000;
JSON
{
  "hex": "#8c2faf",
  "rgb": {
    "r": 140,
    "g": 47,
    "b": 175
  },
  "hsl": {
    "h": 283.594,
    "s": 57.658,
    "l": 43.529
  },
  "oklch": {
    "l": 0.50043,
    "c": 0.19973,
    "h": 315
  },
  "luminance": 0.10704
}

Semantic roles & 50–950 ramp

primary
#8C2FAF
secondary
#8BC475
accent
#E14771
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110813
muted
#807B82

Preview Lab

Preview with #8C2FAF

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

Preview Lab → · Contrast checker → · Palette generator →

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