#8A2BBA#8A2BBA

#8A2BBA is a mid, highly saturated violet. Relative luminance 0.107; OKLCH L 50.2% C 0.213 H 311.1°. Best body text is #FFFFFF at 6.70:1 contrast (WCAG AA passes).

Color values

HEX#8A2BBA
RGBrgb(138, 43, 186)
HSLhsl(280, 62%, 45%)
HSVhsv(280, 77%, 73%)
CMYKcmyk(25.8%, 76.9%, 0%, 27.1%)
CIE-LABlab(39.03, 61.21, -56.74)
CIE-LCHlch(39.03, 83.47, 317.17°)
OKLaboklab(50.19% 0.1405 -0.1608)
OKLCHoklch(50.19% 0.213 311.1)
XYZxyz(20.2063, 10.6767, 47.4412)
Luminance0.1068 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2BBA #5BBA2B
analogous
#432BBA #8A2BBA #BA2BA3
triadic
#8A2BBA #BA8A2B #2BBA8A
tetradic
#8A2BBA #BA432B #5BBA2B #2BA3BA
square
#8A2BBA #BA432B #5BBA2B #2BA3BA
split-complementary
#8A2BBA #A3BA2B #2BBA43
monochromatic
#401457 #652088 #8A2BBA #A84CD6 #C07EE1

Accessibility & contrast

On white

6.70
#8A2BBA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#8A2BBA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A2BBA
6.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2BBA#FFFFFF#000000##FFFFFF
##8A2BBA1.006.703.146.70
#FFFFFF6.701.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058BE
Deuteranopia (green-blind)
#075EB7
Tritanopia (blue-blind)
#844D72
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #8a2bba;
/* rgb */ color: rgb(138, 43, 186);
/* oklch */ color: oklch(50.2% 0.213 311.1);
Tailwind
colors: {
  custom: {
    50: '#b16fd0',
    500: '#8a2bba',
    950: '#000000',
  },
}
SCSS
$custom: #8a2bba;
$custom-light: #b16fd0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2bba",
  "rgb": {
    "r": 138,
    "g": 43,
    "b": 186
  },
  "hsl": {
    "h": 279.86,
    "s": 62.445,
    "l": 44.902
  },
  "oklch": {
    "l": 0.50193,
    "c": 0.21349,
    "h": 311.1
  },
  "luminance": 0.10676
}

Semantic roles & 50–950 ramp

primary
#8A2BBA
secondary
#93CA77
accent
#E64279
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110814
muted
#807B82

Preview Lab

Preview with #8A2BBA

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

Preview Lab → · Contrast checker → · Palette generator →

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