#8A2FBB#8A2FBB

#8A2FBB is a mid, highly saturated violet. Relative luminance 0.110; OKLCH L 50.6% C 0.210 H 310.6°. Best body text is #FFFFFF at 6.55:1 contrast (WCAG AA passes).

Color values

HEX#8A2FBB
RGBrgb(138, 47, 187)
HSLhsl(279, 60%, 46%)
HSVhsv(279, 75%, 73%)
CMYKcmyk(26.2%, 74.9%, 0%, 26.7%)
CIE-LABlab(39.62, 59.94, -56.37)
CIE-LCHlch(39.62, 82.28, 316.76°)
OKLaboklab(50.63% 0.1367 -0.1597)
OKLCHoklch(50.63% 0.21 310.6)
XYZxyz(20.4656, 11.0246, 48.0539)
Luminance0.1102 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2FBB #60BB2F
analogous
#442FBB #8A2FBB #BB2FA6
triadic
#8A2FBB #BB8A2F #2FBB8A
tetradic
#8A2FBB #BB442F #60BB2F #2FA6BB
square
#8A2FBB #BB442F #60BB2F #2FA6BB
split-complementary
#8A2FBB #A6BB2F #2FBB44
monochromatic
#421659 #66238A #8A2FBB #A753D4 #C084E0

Accessibility & contrast

On white

6.55
#8A2FBB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.20
#8A2FBB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A2FBB
6.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2FBB#FFFFFF#000000##FFFFFF
##8A2FBB1.006.553.206.55
#FFFFFF6.551.0021.001.00
#0000003.2021.001.0021.00
##FFFFFF6.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059BF
Deuteranopia (green-blind)
#0E5FB8
Tritanopia (blue-blind)
#835073
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #8a2fbb;
/* rgb */ color: rgb(138, 47, 187);
/* oklch */ color: oklch(50.6% 0.210 310.6);
Tailwind
colors: {
  custom: {
    50: '#b171d0',
    500: '#8a2fbb',
    950: '#000000',
  },
}
SCSS
$custom: #8a2fbb;
$custom-light: #b171d0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2fbb",
  "rgb": {
    "r": 138,
    "g": 47,
    "b": 187
  },
  "hsl": {
    "h": 279,
    "s": 59.829,
    "l": 45.882
  },
  "oklch": {
    "l": 0.50633,
    "c": 0.21024,
    "h": 310.6
  },
  "luminance": 0.11024
}

Semantic roles & 50–950 ramp

primary
#8A2FBB
secondary
#97C97C
accent
#E3457C
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110814
muted
#807B82

Preview Lab

Preview with #8A2FBB

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

Preview Lab → · Contrast checker → · Palette generator →

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