#8A2FB7#8A2FB7

#8A2FB7 is a mid, highly saturated purple. Relative luminance 0.109; OKLCH L 50.3% C 0.206 H 311.7°. Best body text is #FFFFFF at 6.62:1 contrast (WCAG AA passes).

Color values

HEX#8A2FB7
RGBrgb(138, 47, 183)
HSLhsl(280, 59%, 45%)
HSVhsv(280, 74%, 72%)
CMYKcmyk(24.6%, 74.3%, 0%, 28.2%)
CIE-LABlab(39.34, 59.09, -54.48)
CIE-LCHlch(39.34, 80.37, 317.33°)
OKLaboklab(50.34% 0.1374 -0.1541)
OKLCHoklch(50.34% 0.206 311.7)
XYZxyz(20.0434, 10.8557, 45.8301)
Luminance0.1085 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2FB7 #5CB72F
analogous
#462FB7 #8A2FB7 #B72FA0
triadic
#8A2FB7 #B78A2F #2FB78A
tetradic
#8A2FB7 #B7462F #5CB72F #2FA0B7
square
#8A2FB7 #B7462F #5CB72F #2FA0B7
split-complementary
#8A2FB7 #A0B72F #2FB746
monochromatic
#411656 #652286 #8A2FB7 #A751D2 #C082DF

Accessibility & contrast

On white

6.62
#8A2FB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.17
#8A2FB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A2FB7
6.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2FB7#FFFFFF#000000##FFFFFF
##8A2FB71.006.623.176.62
#FFFFFF6.621.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058BB
Deuteranopia (green-blind)
#195EB4
Tritanopia (blue-blind)
#844E71
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #8a2fb7;
/* rgb */ color: rgb(138, 47, 183);
/* oklch */ color: oklch(50.3% 0.206 311.7);
Tailwind
colors: {
  custom: {
    50: '#b171cd',
    500: '#8a2fb7',
    950: '#000000',
  },
}
SCSS
$custom: #8a2fb7;
$custom-light: #b171cd;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2fb7",
  "rgb": {
    "r": 138,
    "g": 47,
    "b": 183
  },
  "hsl": {
    "h": 280.147,
    "s": 59.13,
    "l": 45.098
  },
  "oklch": {
    "l": 0.50341,
    "c": 0.20649,
    "h": 311.7
  },
  "luminance": 0.10855
}

Semantic roles & 50–950 ramp

primary
#8A2FB7
secondary
#94C87A
accent
#E24579
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110814
muted
#807B82

Preview Lab

Preview with #8A2FB7

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

Preview Lab → · Contrast checker → · Palette generator →

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