#8A2EBB#8A2EBB

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

Color values

HEX#8A2EBB
RGBrgb(138, 46, 187)
HSLhsl(279, 61%, 46%)
HSVhsv(279, 75%, 73%)
CMYKcmyk(26.2%, 75.4%, 0%, 26.7%)
CIE-LABlab(39.49, 60.32, -56.59)
CIE-LCHlch(39.49, 82.71, 316.83°)
OKLaboklab(50.54% 0.1377 -0.1603)
OKLCHoklch(50.54% 0.211 310.6)
XYZxyz(20.4261, 10.9456, 48.0408)
Luminance0.1095 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2EBB #5FBB2E
analogous
#432EBB #8A2EBB #BB2EA5
triadic
#8A2EBB #BB8A2E #2EBB8A
tetradic
#8A2EBB #BB432E #5FBB2E #2EA5BB
square
#8A2EBB #BB432E #5FBB2E #2EA5BB
split-complementary
#8A2EBB #A5BB2E #2EBB43
monochromatic
#421659 #66228A #8A2EBB #A752D4 #C083E0

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A2EBB#FFFFFF#000000##FFFFFF
##8A2EBB1.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)
#0059BF
Deuteranopia (green-blind)
#0C5EB8
Tritanopia (blue-blind)
#834F73
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #8a2ebb;
/* rgb */ color: rgb(138, 46, 187);
/* oklch */ color: oklch(50.5% 0.211 310.6);
Tailwind
colors: {
  custom: {
    50: '#b170d0',
    500: '#8a2ebb',
    950: '#000000',
  },
}
SCSS
$custom: #8a2ebb;
$custom-light: #b170d0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2ebb",
  "rgb": {
    "r": 138,
    "g": 46,
    "b": 187
  },
  "hsl": {
    "h": 279.149,
    "s": 60.515,
    "l": 45.686
  },
  "oklch": {
    "l": 0.50539,
    "c": 0.21131,
    "h": 310.6
  },
  "luminance": 0.10945
}

Semantic roles & 50–950 ramp

primary
#8A2EBB
secondary
#96CA7B
accent
#E4447C
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110814
muted
#807B82

Preview Lab

Preview with #8A2EBB

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

Preview Lab → · Contrast checker → · Palette generator →

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