#8A2FBE#8A2FBE

#8A2FBE is a mid, highly saturated violet. Relative luminance 0.112; OKLCH L 50.9% C 0.213 H 309.7°. Best body text is #FFFFFF at 6.50:1 contrast (WCAG AA passes).

Color values

HEX#8A2FBE
RGBrgb(138, 47, 190)
HSLhsl(278, 60%, 46%)
HSVhsv(278, 75%, 75%)
CMYKcmyk(27.4%, 75.3%, 0%, 25.5%)
CIE-LABlab(39.84, 60.57, -57.78)
CIE-LCHlch(39.84, 83.71, 316.35°)
OKLaboklab(50.86% 0.1362 -0.1638)
OKLCHoklch(50.86% 0.213 309.7)
XYZxyz(20.7902, 11.1544, 49.7630)
Luminance0.1115 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2FBE #63BE2F
analogous
#432FBE #8A2FBE #BE2FAB
triadic
#8A2FBE #BE8A2F #2FBE8A
tetradic
#8A2FBE #BE432F #63BE2F #2FABBE
square
#8A2FBE #BE432F #63BE2F #2FABBE
split-complementary
#8A2FBE #ABBE2F #2FBE43
monochromatic
#43175C #66238D #8A2FBE #A755D5 #C086E1

Accessibility & contrast

On white

6.50
#8A2FBE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.23
#8A2FBE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A2FBE
6.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2FBE#FFFFFF#000000##FFFFFF
##8A2FBE1.006.503.236.50
#FFFFFF6.501.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AC2
Deuteranopia (green-blind)
#015FBB
Tritanopia (blue-blind)
#825175
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #8a2fbe;
/* rgb */ color: rgb(138, 47, 190);
/* oklch */ color: oklch(50.9% 0.213 309.7);
Tailwind
colors: {
  custom: {
    50: '#b171d2',
    500: '#8a2fbe',
    950: '#000000',
  },
}
SCSS
$custom: #8a2fbe;
$custom-light: #b171d2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2fbe",
  "rgb": {
    "r": 138,
    "g": 47,
    "b": 190
  },
  "hsl": {
    "h": 278.182,
    "s": 60.338,
    "l": 46.471
  },
  "oklch": {
    "l": 0.50855,
    "c": 0.21306,
    "h": 309.7
  },
  "luminance": 0.11154
}

Semantic roles & 50–950 ramp

primary
#8A2FBE
secondary
#9ACB7E
accent
#E3447E
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#110814
muted
#807B83

Preview Lab

Preview with #8A2FBE

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

Preview Lab → · Contrast checker → · Palette generator →

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