#8A2FBA#8A2FBA

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

Color values

HEX#8A2FBA
RGBrgb(138, 47, 186)
HSLhsl(279, 60%, 46%)
HSVhsv(279, 75%, 73%)
CMYKcmyk(25.8%, 74.7%, 0%, 27.1%)
CIE-LABlab(39.55, 59.72, -55.90)
CIE-LCHlch(39.55, 81.80, 316.89°)
OKLaboklab(50.56% 0.1369 -0.1583)
OKLCHoklch(50.56% 0.209 310.9)
XYZxyz(20.3590, 10.9820, 47.4921)
Luminance0.1098 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2FBA #5FBA2F
analogous
#452FBA #8A2FBA #BA2FA4
triadic
#8A2FBA #BA8A2F #2FBA8A
tetradic
#8A2FBA #BA452F #5FBA2F #2FA4BA
square
#8A2FBA #BA452F #5FBA2F #2FA4BA
split-complementary
#8A2FBA #A4BA2F #2FBA45
monochromatic
#421658 #662389 #8A2FBA #A753D3 #C084E0

Accessibility & contrast

On white

6.57
#8A2FBA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #8A2FBA
6.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2FBA#FFFFFF#000000##FFFFFF
##8A2FBA1.006.573.206.57
#FFFFFF6.571.0021.001.00
#0000003.2021.001.0021.00
##FFFFFF6.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059BE
Deuteranopia (green-blind)
#125FB7
Tritanopia (blue-blind)
#844F73
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #8a2fba;
/* rgb */ color: rgb(138, 47, 186);
/* oklch */ color: oklch(50.6% 0.209 310.9);
Tailwind
colors: {
  custom: {
    50: '#b171d0',
    500: '#8a2fba',
    950: '#000000',
  },
}
SCSS
$custom: #8a2fba;
$custom-light: #b171d0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2fba",
  "rgb": {
    "r": 138,
    "g": 47,
    "b": 186
  },
  "hsl": {
    "h": 279.281,
    "s": 59.657,
    "l": 45.686
  },
  "oklch": {
    "l": 0.50559,
    "c": 0.20931,
    "h": 310.9
  },
  "luminance": 0.10981
}

Semantic roles & 50–950 ramp

primary
#8A2FBA
secondary
#96C97C
accent
#E3457B
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110814
muted
#807B82

Preview Lab

Preview with #8A2FBA

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

Preview Lab → · Contrast checker → · Palette generator →

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