#8A2BB0#8A2BB0

#8A2BB0 is a mid, highly saturated purple. Relative luminance 0.103; OKLCH L 49.5% C 0.204 H 314.1°. Best body text is #FFFFFF at 6.88:1 contrast (WCAG AA passes).

Color values

HEX#8A2BB0
RGBrgb(138, 43, 176)
HSLhsl(283, 61%, 43%)
HSVhsv(283, 76%, 69%)
CMYKcmyk(21.6%, 75.6%, 0%, 31%)
CIE-LABlab(38.32, 59.15, -51.98)
CIE-LCHlch(38.32, 78.75, 318.69°)
OKLaboklab(49.46% 0.1422 -0.1468)
OKLCHoklch(49.46% 0.204 314.1)
XYZxyz(19.1802, 10.2663, 42.0371)
Luminance0.1027 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2BB0 #51B02B
analogous
#472BB0 #8A2BB0 #B02B93
triadic
#8A2BB0 #B08A2B #2BB08A
tetradic
#8A2BB0 #B0472B #51B02B #2B93B0
square
#8A2BB0 #B0472B #51B02B #2B93B0
split-complementary
#8A2BB0 #93B02B #2BB047
monochromatic
#3D134E #631F7F #8A2BB0 #AA46D2 #C178DE

Accessibility & contrast

On white

6.88
#8A2BB0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#8A2BB0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A2BB0
6.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2BB0#FFFFFF#000000##FFFFFF
##8A2BB01.006.883.056.88
#FFFFFF6.881.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B4
Deuteranopia (green-blind)
#215CAD
Tritanopia (blue-blind)
#86496C
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #8a2bb0;
/* rgb */ color: rgb(138, 43, 176);
/* oklch */ color: oklch(49.5% 0.204 314.1);
Tailwind
colors: {
  custom: {
    50: '#b06fc8',
    500: '#8a2bb0',
    950: '#000000',
  },
}
SCSS
$custom: #8a2bb0;
$custom-light: #b06fc8;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2bb0",
  "rgb": {
    "r": 138,
    "g": 43,
    "b": 176
  },
  "hsl": {
    "h": 282.857,
    "s": 60.731,
    "l": 42.941
  },
  "oklch": {
    "l": 0.49463,
    "c": 0.20437,
    "h": 314.1
  },
  "luminance": 0.10266
}

Semantic roles & 50–950 ramp

primary
#8A2BB0
secondary
#89C671
accent
#E44472
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110813
muted
#807B82

Preview Lab

Preview with #8A2BB0

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

Preview Lab → · Contrast checker → · Palette generator →

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