#8A2FB9#8A2FB9

#8A2FB9 is a mid, highly saturated violet. Relative luminance 0.109; OKLCH L 50.5% C 0.208 H 311.1°. Best body text is #FFFFFF at 6.59:1 contrast (WCAG AA passes).

Color values

HEX#8A2FB9
RGBrgb(138, 47, 185)
HSLhsl(280, 59%, 45%)
HSVhsv(280, 75%, 73%)
CMYKcmyk(25.4%, 74.6%, 0%, 27.5%)
CIE-LABlab(39.48, 59.51, -55.43)
CIE-LCHlch(39.48, 81.33, 317.04°)
OKLaboklab(50.49% 0.1371 -0.1569)
OKLCHoklch(50.49% 0.208 311.1)
XYZxyz(20.2530, 10.9396, 46.9342)
Luminance0.1094 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2FB9 #5EB92F
analogous
#452FB9 #8A2FB9 #B92FA3
triadic
#8A2FB9 #B98A2F #2FB98A
tetradic
#8A2FB9 #B9452F #5EB92F #2FA3B9
square
#8A2FB9 #B9452F #5EB92F #2FA3B9
split-complementary
#8A2FB9 #A3B92F #2FB945
monochromatic
#411657 #662388 #8A2FB9 #A752D3 #C083DF

Accessibility & contrast

On white

6.59
#8A2FB9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.19
#8A2FB9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A2FB9
6.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2FB9#FFFFFF#000000##FFFFFF
##8A2FB91.006.593.196.59
#FFFFFF6.591.0021.001.00
#0000003.1921.001.0021.00
##FFFFFF6.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059BD
Deuteranopia (green-blind)
#145FB6
Tritanopia (blue-blind)
#844F72
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #8a2fb9;
/* rgb */ color: rgb(138, 47, 185);
/* oklch */ color: oklch(50.5% 0.208 311.1);
Tailwind
colors: {
  custom: {
    50: '#b171cf',
    500: '#8a2fb9',
    950: '#000000',
  },
}
SCSS
$custom: #8a2fb9;
$custom-light: #b171cf;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2fb9",
  "rgb": {
    "r": 138,
    "g": 47,
    "b": 185
  },
  "hsl": {
    "h": 279.565,
    "s": 59.483,
    "l": 45.49
  },
  "oklch": {
    "l": 0.50486,
    "c": 0.20837,
    "h": 311.1
  },
  "luminance": 0.10939
}

Semantic roles & 50–950 ramp

primary
#8A2FB9
secondary
#96C97B
accent
#E3457B
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110814
muted
#807B82

Preview Lab

Preview with #8A2FB9

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

Preview Lab → · Contrast checker → · Palette generator →

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