#8A2CBA#8A2CBA

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

Color values

HEX#8A2CBA
RGBrgb(138, 44, 186)
HSLhsl(280, 62%, 45%)
HSVhsv(280, 76%, 73%)
CMYKcmyk(25.8%, 76.3%, 0%, 27.1%)
CIE-LABlab(39.16, 60.85, -56.54)
CIE-LCHlch(39.16, 83.06, 317.10°)
OKLaboklab(50.28% 0.1396 -0.1602)
OKLCHoklch(50.28% 0.212 311.1)
XYZxyz(20.2431, 10.7503, 47.4535)
Luminance0.1075 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2CBA #5CBA2C
analogous
#432CBA #8A2CBA #BA2CA3
triadic
#8A2CBA #BA8A2C #2CBA8A
tetradic
#8A2CBA #BA432C #5CBA2C #2CA3BA
square
#8A2CBA #BA432C #5CBA2C #2CA3BA
split-complementary
#8A2CBA #A3BA2C #2CBA43
monochromatic
#411557 #652089 #8A2CBA #A74ED5 #C080E1

Accessibility & contrast

On white

6.67
#8A2CBA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.15
#8A2CBA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A2CBA
6.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2CBA#FFFFFF#000000##FFFFFF
##8A2CBA1.006.673.156.67
#FFFFFF6.671.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058BE
Deuteranopia (green-blind)
#0A5EB7
Tritanopia (blue-blind)
#844E72
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #8a2cba;
/* rgb */ color: rgb(138, 44, 186);
/* oklch */ color: oklch(50.3% 0.212 311.1);
Tailwind
colors: {
  custom: {
    50: '#b16fd0',
    500: '#8a2cba',
    950: '#000000',
  },
}
SCSS
$custom: #8a2cba;
$custom-light: #b16fd0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2cba",
  "rgb": {
    "r": 138,
    "g": 44,
    "b": 186
  },
  "hsl": {
    "h": 279.718,
    "s": 61.739,
    "l": 45.098
  },
  "oklch": {
    "l": 0.50282,
    "c": 0.21247,
    "h": 311.1
  },
  "luminance": 0.1075
}

Semantic roles & 50–950 ramp

primary
#8A2CBA
secondary
#94CA78
accent
#E5437A
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110814
muted
#807B82

Preview Lab

Preview with #8A2CBA

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

Preview Lab → · Contrast checker → · Palette generator →

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