#8C1FA5#8C1FA5

#8C1FA5 is a mid, highly saturated purple. Relative luminance 0.093; OKLCH L 48.0% C 0.207 H 319.0°. Best body text is #FFFFFF at 7.36:1 contrast (WCAG AA passes).

Color values

HEX#8C1FA5
RGBrgb(140, 31, 165)
HSLhsl(289, 68%, 38%)
HSVhsv(289, 81%, 65%)
CMYKcmyk(15.2%, 81.2%, 0%, 35.3%)
CIE-LABlab(36.50, 61.33, -48.32)
CIE-LCHlch(36.50, 78.07, 321.77°)
OKLaboklab(48.01% 0.1565 -0.1359)
OKLCHoklch(48.01% 0.207 319)
XYZxyz(18.0958, 9.2729, 36.4267)
Luminance0.0927 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C1FA5 #38A51F
analogous
#491FA5 #8C1FA5 #A51F7B
triadic
#8C1FA5 #A58C1F #1FA58C
tetradic
#8C1FA5 #A5491F #38A51F #1F7BA5
square
#8C1FA5 #A5491F #38A51F #1F7BA5
split-complementary
#8C1FA5 #7BA51F #1FA549
monochromatic
#350C3E #601571 #8C1FA5 #B72AD7 #C85EE1

Accessibility & contrast

On white

7.36
#8C1FA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#8C1FA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8C1FA5
7.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C1FA5#FFFFFF#000000##FFFFFF
##8C1FA51.007.362.857.36
#FFFFFF7.361.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA8
Deuteranopia (green-blind)
#2959A2
Tritanopia (blue-blind)
#8C3E63
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #8c1fa5;
/* rgb */ color: rgb(140, 31, 165);
/* oklch */ color: oklch(48.0% 0.207 319.0);
Tailwind
colors: {
  custom: {
    50: '#b269c0',
    500: '#8c1fa5',
    950: '#000000',
  },
}
SCSS
$custom: #8c1fa5;
$custom-light: #b269c0;
$custom-dark: #000000;
JSON
{
  "hex": "#8c1fa5",
  "rgb": {
    "r": 140,
    "g": 31,
    "b": 165
  },
  "hsl": {
    "h": 288.806,
    "s": 68.367,
    "l": 38.431
  },
  "oklch": {
    "l": 0.48007,
    "c": 0.20722,
    "h": 319
  },
  "luminance": 0.09272
}

Semantic roles & 50–950 ramp

primary
#8C1FA5
secondary
#6FC55B
accent
#EB3D5D
background
#FBF6FB
surface
#F6ECF7
border
#D0C7D0
text
#110712
muted
#807A81

Preview Lab

Preview with #8C1FA5

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

Preview Lab → · Contrast checker → · Palette generator →

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