#8A2FC3#8A2FC3

#8A2FC3 is a mid, highly saturated violet. Relative luminance 0.114; OKLCH L 51.2% C 0.218 H 308.4°. Best body text is #FFFFFF at 6.41:1 contrast (WCAG AA passes).

Color values

HEX#8A2FC3
RGBrgb(138, 47, 195)
HSLhsl(277, 61%, 47%)
HSVhsv(277, 76%, 76%)
CMYKcmyk(29.2%, 75.9%, 0%, 23.5%)
CIE-LABlab(40.21, 61.65, -60.11)
CIE-LCHlch(40.21, 86.10, 315.72°)
OKLaboklab(51.23% 0.1352 -0.1707)
OKLCHoklch(51.23% 0.218 308.4)
XYZxyz(21.3460, 11.3768, 52.6906)
Luminance0.1138 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2FC3 #68C32F
analogous
#402FC3 #8A2FC3 #C32FB2
triadic
#8A2FC3 #C38A2F #2FC38A
tetradic
#8A2FC3 #C3402F #68C32F #2FB2C3
square
#8A2FC3 #C3402F #68C32F #2FB2C3
split-complementary
#8A2FC3 #B2C32F #2FC340
monochromatic
#441760 #672392 #8A2FC3 #A658D7 #C08AE3

Accessibility & contrast

On white

6.41
#8A2FC3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #8A2FC3
6.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2FC3#FFFFFF#000000##FFFFFF
##8A2FC31.006.413.286.41
#FFFFFF6.411.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BC7
Deuteranopia (green-blind)
#0060C0
Tritanopia (blue-blind)
#815378
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #8a2fc3;
/* rgb */ color: rgb(138, 47, 195);
/* oklch */ color: oklch(51.2% 0.218 308.4);
Tailwind
colors: {
  custom: {
    50: '#b171d6',
    500: '#8a2fc3',
    950: '#000000',
  },
}
SCSS
$custom: #8a2fc3;
$custom-light: #b171d6;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2fc3",
  "rgb": {
    "r": 138,
    "g": 47,
    "b": 195
  },
  "hsl": {
    "h": 276.892,
    "s": 61.157,
    "l": 47.451
  },
  "oklch": {
    "l": 0.5123,
    "c": 0.21777,
    "h": 308.4
  },
  "luminance": 0.11376
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8A2FC3

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

Preview Lab → · Contrast checker → · Palette generator →

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