#8A2FBC#8A2FBC

#8A2FBC is a mid, highly saturated violet. Relative luminance 0.111; OKLCH L 50.7% C 0.211 H 310.3°. Best body text is #FFFFFF at 6.54:1 contrast (WCAG AA passes).

Color values

HEX#8A2FBC
RGBrgb(138, 47, 188)
HSLhsl(279, 60%, 46%)
HSVhsv(279, 75%, 74%)
CMYKcmyk(26.6%, 75%, 0%, 26.3%)
CIE-LABlab(39.69, 60.15, -56.84)
CIE-LCHlch(39.69, 82.76, 316.62°)
OKLaboklab(50.71% 0.1366 -0.1611)
OKLCHoklch(50.71% 0.211 310.3)
XYZxyz(20.5731, 11.0676, 48.6197)
Luminance0.1107 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2FBC #61BC2F
analogous
#432FBC #8A2FBC #BC2FA7
triadic
#8A2FBC #BC8A2F #2FBC8A
tetradic
#8A2FBC #BC432F #61BC2F #2FA7BC
square
#8A2FBC #BC432F #61BC2F #2FA7BC
split-complementary
#8A2FBC #A7BC2F #2FBC43
monochromatic
#42175A #66238B #8A2FBC #A754D4 #C085E0

Accessibility & contrast

On white

6.54
#8A2FBC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.21
#8A2FBC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A2FBC
6.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2FBC#FFFFFF#000000##FFFFFF
##8A2FBC1.006.543.216.54
#FFFFFF6.541.0021.001.00
#0000003.2121.001.0021.00
##FFFFFF6.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AC0
Deuteranopia (green-blind)
#0A5FB9
Tritanopia (blue-blind)
#835074
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #8a2fbc;
/* rgb */ color: rgb(138, 47, 188);
/* oklch */ color: oklch(50.7% 0.211 310.3);
Tailwind
colors: {
  custom: {
    50: '#b171d1',
    500: '#8a2fbc',
    950: '#000000',
  },
}
SCSS
$custom: #8a2fbc;
$custom-light: #b171d1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2fbc",
  "rgb": {
    "r": 138,
    "g": 47,
    "b": 188
  },
  "hsl": {
    "h": 278.723,
    "s": 60,
    "l": 46.078
  },
  "oklch": {
    "l": 0.50706,
    "c": 0.21118,
    "h": 310.3
  },
  "luminance": 0.11067
}

Semantic roles & 50–950 ramp

primary
#8A2FBC
secondary
#98CA7D
accent
#E3457D
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110814
muted
#807B82

Preview Lab

Preview with #8A2FBC

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

Preview Lab → · Contrast checker → · Palette generator →

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