#8A1CAF#8A1CAF

#8A1CAF is a mid, highly saturated purple. Relative luminance 0.093; OKLCH L 48.2% C 0.217 H 315.2°. Best body text is #FFFFFF at 7.33:1 contrast (WCAG AA passes).

Color values

HEX#8A1CAF
RGBrgb(138, 28, 175)
HSLhsl(285, 72%, 40%)
HSVhsv(285, 84%, 69%)
CMYKcmyk(21.1%, 84%, 0%, 31.4%)
CIE-LABlab(36.61, 63.69, -54.15)
CIE-LCHlch(36.61, 83.59, 319.63°)
OKLaboklab(48.24% 0.1542 -0.153)
OKLCHoklch(48.24% 0.217 315.2)
XYZxyz(18.6331, 9.3297, 41.3684)
Luminance0.0933 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1CAF #41AF1C
analogous
#411CAF #8A1CAF #AF1C8B
triadic
#8A1CAF #AF8A1C #1CAF8A
tetradic
#8A1CAF #AF411C #41AF1C #1C8BAF
square
#8A1CAF #AF411C #41AF1C #1C8BAF
split-complementary
#8A1CAF #8BAF1C #1CAF41
monochromatic
#370B45 #60147A #8A1CAF #B02BDD #C460E6

Accessibility & contrast

On white

7.33
#8A1CAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#8A1CAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A1CAF
7.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1CAF#FFFFFF#000000##FFFFFF
##8A1CAF1.007.332.877.33
#FFFFFF7.331.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B3
Deuteranopia (green-blind)
#1159AC
Tritanopia (blue-blind)
#874268
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #8a1caf;
/* rgb */ color: rgb(138, 28, 175);
/* oklch */ color: oklch(48.2% 0.217 315.2);
Tailwind
colors: {
  custom: {
    50: '#b169c8',
    500: '#8a1caf',
    950: '#000000',
  },
}
SCSS
$custom: #8a1caf;
$custom-light: #b169c8;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1caf",
  "rgb": {
    "r": 138,
    "g": 28,
    "b": 175
  },
  "hsl": {
    "h": 284.898,
    "s": 72.414,
    "l": 39.804
  },
  "oklch": {
    "l": 0.48243,
    "c": 0.21724,
    "h": 315.2
  },
  "luminance": 0.09329
}

Semantic roles & 50–950 ramp

primary
#8A1CAF
secondary
#78CA5D
accent
#EF3967
background
#FBF6FC
surface
#F6ECF8
border
#D0C7D1
text
#110713
muted
#807A82

Preview Lab

Preview with #8A1CAF

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

Preview Lab → · Contrast checker → · Palette generator →

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