#8A2FC4#8A2FC4

#8A2FC4 is a mid, highly saturated violet. Relative luminance 0.114; OKLCH L 51.3% C 0.219 H 308.1°. Best body text is #FFFFFF at 6.39:1 contrast (WCAG AA passes).

Color values

HEX#8A2FC4
RGBrgb(138, 47, 196)
HSLhsl(277, 61%, 48%)
HSVhsv(277, 76%, 77%)
CMYKcmyk(29.6%, 76%, 0%, 23.1%)
CIE-LABlab(40.28, 61.86, -60.57)
CIE-LCHlch(40.28, 86.58, 315.60°)
OKLaboklab(51.31% 0.135 -0.172)
OKLCHoklch(51.31% 0.219 308.1)
XYZxyz(21.4595, 11.4222, 53.2881)
Luminance0.1142 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2FC4 #69C42F
analogous
#3F2FC4 #8A2FC4 #C42FB4
triadic
#8A2FC4 #C48A2F #2FC48A
tetradic
#8A2FC4 #C43F2F #69C42F #2FB4C4
square
#8A2FC4 #C43F2F #69C42F #2FB4C4
split-complementary
#8A2FC4 #B4C42F #2FC43F
monochromatic
#441761 #672393 #8A2FC4 #A659D7 #C18AE3

Accessibility & contrast

On white

6.39
#8A2FC4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#8A2FC4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A2FC4
6.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2FC4#FFFFFF#000000##FFFFFF
##8A2FC41.006.393.286.39
#FFFFFF6.391.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CC8
Deuteranopia (green-blind)
#0060C1
Tritanopia (blue-blind)
#815478
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #8a2fc4;
/* rgb */ color: rgb(138, 47, 196);
/* oklch */ color: oklch(51.3% 0.219 308.1);
Tailwind
colors: {
  custom: {
    50: '#b171d7',
    500: '#8a2fc4',
    950: '#000000',
  },
}
SCSS
$custom: #8a2fc4;
$custom-light: #b171d7;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2fc4",
  "rgb": {
    "r": 138,
    "g": 47,
    "b": 196
  },
  "hsl": {
    "h": 276.644,
    "s": 61.317,
    "l": 47.647
  },
  "oklch": {
    "l": 0.51306,
    "c": 0.2187,
    "h": 308.1
  },
  "luminance": 0.11422
}

Semantic roles & 50–950 ramp

primary
#8A2FC4
secondary
#9FCD82
accent
#E44382
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#110814
muted
#807B83

Preview Lab

Preview with #8A2FC4

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

Preview Lab → · Contrast checker → · Palette generator →

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