#8A2BBB#8A2BBB

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

Color values

HEX#8A2BBB
RGBrgb(138, 43, 187)
HSLhsl(280, 63%, 45%)
HSVhsv(280, 77%, 73%)
CMYKcmyk(26.2%, 77%, 0%, 26.7%)
CIE-LABlab(39.10, 61.42, -57.21)
CIE-LCHlch(39.10, 83.94, 317.03°)
OKLaboklab(50.27% 0.1403 -0.1621)
OKLCHoklch(50.27% 0.214 310.9)
XYZxyz(20.3130, 10.7194, 48.0031)
Luminance0.1072 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2BBB #5CBB2B
analogous
#422BBB #8A2BBB #BB2BA4
triadic
#8A2BBB #BB8A2B #2BBB8A
tetradic
#8A2BBB #BB422B #5CBB2B #2BA4BB
square
#8A2BBB #BB422B #5CBB2B #2BA4BB
split-complementary
#8A2BBB #A4BB2B #2BBB42
monochromatic
#411457 #652089 #8A2BBB #A74DD6 #C07FE2

Accessibility & contrast

On white

6.68
#8A2BBB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #8A2BBB
6.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2BBB#FFFFFF#000000##FFFFFF
##8A2BBB1.006.683.146.68
#FFFFFF6.681.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058BF
Deuteranopia (green-blind)
#035EB8
Tritanopia (blue-blind)
#834E72
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #8a2bbb;
/* rgb */ color: rgb(138, 43, 187);
/* oklch */ color: oklch(50.3% 0.214 310.9);
Tailwind
colors: {
  custom: {
    50: '#b16fd0',
    500: '#8a2bbb',
    950: '#000000',
  },
}
SCSS
$custom: #8a2bbb;
$custom-light: #b16fd0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2bbb",
  "rgb": {
    "r": 138,
    "g": 43,
    "b": 187
  },
  "hsl": {
    "h": 279.583,
    "s": 62.609,
    "l": 45.098
  },
  "oklch": {
    "l": 0.50267,
    "c": 0.21441,
    "h": 310.9
  },
  "luminance": 0.10719
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8A2BBB

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

Preview Lab → · Contrast checker → · Palette generator →

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