#8A2FC2#8A2FC2

#8A2FC2 is a mid, highly saturated violet. Relative luminance 0.113; OKLCH L 51.2% C 0.217 H 308.7°. Best body text is #FFFFFF at 6.43:1 contrast (WCAG AA passes).

Color values

HEX#8A2FC2
RGBrgb(138, 47, 194)
HSLhsl(277, 61%, 47%)
HSVhsv(277, 76%, 76%)
CMYKcmyk(28.9%, 75.8%, 0%, 23.9%)
CIE-LABlab(40.13, 61.43, -59.65)
CIE-LCHlch(40.13, 85.62, 315.84°)
OKLaboklab(51.15% 0.1354 -0.1693)
OKLCHoklch(51.15% 0.217 308.7)
XYZxyz(21.2333, 11.3317, 52.0971)
Luminance0.1133 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2FC2 #67C22F
analogous
#412FC2 #8A2FC2 #C22FB1
triadic
#8A2FC2 #C28A2F #2FC28A
tetradic
#8A2FC2 #C2412F #67C22F #2FB1C2
square
#8A2FC2 #C2412F #67C22F #2FB1C2
split-complementary
#8A2FC2 #B1C22F #2FC241
monochromatic
#44175F #672391 #8A2FC2 #A658D6 #C089E2

Accessibility & contrast

On white

6.43
#8A2FC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#8A2FC2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A2FC2
6.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2FC2#FFFFFF#000000##FFFFFF
##8A2FC21.006.433.276.43
#FFFFFF6.431.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BC6
Deuteranopia (green-blind)
#0060BF
Tritanopia (blue-blind)
#815377
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #8a2fc2;
/* rgb */ color: rgb(138, 47, 194);
/* oklch */ color: oklch(51.2% 0.217 308.7);
Tailwind
colors: {
  custom: {
    50: '#b171d5',
    500: '#8a2fc2',
    950: '#000000',
  },
}
SCSS
$custom: #8a2fc2;
$custom-light: #b171d5;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2fc2",
  "rgb": {
    "r": 138,
    "g": 47,
    "b": 194
  },
  "hsl": {
    "h": 277.143,
    "s": 60.996,
    "l": 47.255
  },
  "oklch": {
    "l": 0.51154,
    "c": 0.21682,
    "h": 308.7
  },
  "luminance": 0.11331
}

Semantic roles & 50–950 ramp

primary
#8A2FC2
secondary
#9DCC81
accent
#E44481
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#110814
muted
#807B83

Preview Lab

Preview with #8A2FC2

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

Preview Lab → · Contrast checker → · Palette generator →

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