#8A2FB4#8A2FB4

#8A2FB4 is a mid, highly saturated purple. Relative luminance 0.107; OKLCH L 50.1% C 0.204 H 312.6°. Best body text is #FFFFFF at 6.67:1 contrast (WCAG AA passes).

Color values

HEX#8A2FB4
RGBrgb(138, 47, 180)
HSLhsl(281, 59%, 45%)
HSVhsv(281, 74%, 71%)
CMYKcmyk(23.3%, 73.9%, 0%, 29.4%)
CIE-LABlab(39.13, 58.46, -53.05)
CIE-LCHlch(39.13, 78.94, 317.78°)
OKLaboklab(50.13% 0.1379 -0.1499)
OKLCHoklch(50.13% 0.204 312.6)
XYZxyz(19.7345, 10.7322, 44.2031)
Luminance0.1073 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2FB4 #59B42F
analogous
#482FB4 #8A2FB4 #B42F9B
triadic
#8A2FB4 #B48A2F #2FB48A
tetradic
#8A2FB4 #B4482F #59B42F #2F9BB4
square
#8A2FB4 #B4482F #59B42F #2F9BB4
split-complementary
#8A2FB4 #9BB42F #2FB448
monochromatic
#401653 #652283 #8A2FB4 #A84FD1 #C080DE

Accessibility & contrast

On white

6.67
#8A2FB4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.15
#8A2FB4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A2FB4
6.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2FB4#FFFFFF#000000##FFFFFF
##8A2FB41.006.673.156.67
#FFFFFF6.671.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058B8
Deuteranopia (green-blind)
#1F5EB1
Tritanopia (blue-blind)
#854D6F
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #8a2fb4;
/* rgb */ color: rgb(138, 47, 180);
/* oklch */ color: oklch(50.1% 0.204 312.6);
Tailwind
colors: {
  custom: {
    50: '#b071cb',
    500: '#8a2fb4',
    950: '#000000',
  },
}
SCSS
$custom: #8a2fb4;
$custom-light: #b071cb;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2fb4",
  "rgb": {
    "r": 138,
    "g": 47,
    "b": 180
  },
  "hsl": {
    "h": 281.053,
    "s": 58.59,
    "l": 44.51
  },
  "oklch": {
    "l": 0.50125,
    "c": 0.20368,
    "h": 312.6
  },
  "luminance": 0.10732
}

Semantic roles & 50–950 ramp

primary
#8A2FB4
secondary
#91C778
accent
#E24677
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110813
muted
#807B82

Preview Lab

Preview with #8A2FB4

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

Preview Lab → · Contrast checker → · Palette generator →

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