#8A2FB8#8A2FB8

#8A2FB8 is a mid, highly saturated violet. Relative luminance 0.109; OKLCH L 50.4% C 0.207 H 311.4°. Best body text is #FFFFFF at 6.61:1 contrast (WCAG AA passes).

Color values

HEX#8A2FB8
RGBrgb(138, 47, 184)
HSLhsl(280, 59%, 45%)
HSVhsv(280, 74%, 72%)
CMYKcmyk(25%, 74.5%, 0%, 27.8%)
CIE-LABlab(39.41, 59.30, -54.95)
CIE-LCHlch(39.41, 80.85, 317.18°)
OKLaboklab(50.41% 0.1372 -0.1555)
OKLCHoklch(50.41% 0.207 311.4)
XYZxyz(20.1478, 10.8975, 46.3802)
Luminance0.1090 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2FB8 #5DB82F
analogous
#462FB8 #8A2FB8 #B82FA1
triadic
#8A2FB8 #B88A2F #2FB88A
tetradic
#8A2FB8 #B8462F #5DB82F #2FA1B8
square
#8A2FB8 #B8462F #5DB82F #2FA1B8
split-complementary
#8A2FB8 #A1B82F #2FB846
monochromatic
#411657 #652387 #8A2FB8 #A752D3 #C082DF

Accessibility & contrast

On white

6.61
#8A2FB8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.18
#8A2FB8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A2FB8
6.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2FB8#FFFFFF#000000##FFFFFF
##8A2FB81.006.613.186.61
#FFFFFF6.611.0021.001.00
#0000003.1821.001.0021.00
##FFFFFF6.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059BC
Deuteranopia (green-blind)
#175EB5
Tritanopia (blue-blind)
#844F71
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #8a2fb8;
/* rgb */ color: rgb(138, 47, 184);
/* oklch */ color: oklch(50.4% 0.207 311.4);
Tailwind
colors: {
  custom: {
    50: '#b171ce',
    500: '#8a2fb8',
    950: '#000000',
  },
}
SCSS
$custom: #8a2fb8;
$custom-light: #b171ce;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2fb8",
  "rgb": {
    "r": 138,
    "g": 47,
    "b": 184
  },
  "hsl": {
    "h": 279.854,
    "s": 59.307,
    "l": 45.294
  },
  "oklch": {
    "l": 0.50413,
    "c": 0.20742,
    "h": 311.4
  },
  "luminance": 0.10897
}

Semantic roles & 50–950 ramp

primary
#8A2FB8
secondary
#95C87B
accent
#E2457A
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110814
muted
#807B82

Preview Lab

Preview with #8A2FB8

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

Preview Lab → · Contrast checker → · Palette generator →

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