#8A2BCC#8A2BCC

#8A2BCC is a mid, highly saturated violet. Relative luminance 0.115; OKLCH L 51.6% C 0.230 H 306.4°. Best body text is #FFFFFF at 6.37:1 contrast (WCAG AA passes).

Color values

HEX#8A2BCC
RGBrgb(138, 43, 204)
HSLhsl(275, 65%, 48%)
HSVhsv(275, 79%, 80%)
CMYKcmyk(32.4%, 78.9%, 0%, 20%)
CIE-LABlab(40.40, 65.03, -65.04)
CIE-LCHlch(40.40, 91.98, 315.00°)
OKLaboklab(51.58% 0.1365 -0.1852)
OKLCHoklch(51.58% 0.23 306.4)
XYZxyz(22.2418, 11.4909, 58.1613)
Luminance0.1149 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2BCC #6DCC2B
analogous
#3A2BCC #8A2BCC #CC2BBD
triadic
#8A2BCC #CC8A2B #2BCC8A
tetradic
#8A2BCC #CC3A2B #6DCC2B #2BBDCC
square
#8A2BCC #CC3A2B #6DCC2B #2BBDCC
split-complementary
#8A2BCC #BDCC2B #2BCC3A
monochromatic
#461667 #682099 #8A2BCC #A658DC #C18BE7

Accessibility & contrast

On white

6.37
#8A2BCC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.30
#8A2BCC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A2BCC
6.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2BCC#FFFFFF#000000##FFFFFF
##8A2BCC1.006.373.306.37
#FFFFFF6.371.0021.001.00
#0000003.3021.001.0021.00
##FFFFFF6.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CD0
Deuteranopia (green-blind)
#0060C9
Tritanopia (blue-blind)
#7E557C
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #8a2bcc;
/* rgb */ color: rgb(138, 43, 204);
/* oklch */ color: oklch(51.6% 0.230 306.4);
Tailwind
colors: {
  custom: {
    50: '#b270dd',
    500: '#8a2bcc',
    950: '#000000',
  },
}
SCSS
$custom: #8a2bcc;
$custom-light: #b270dd;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2bcc",
  "rgb": {
    "r": 138,
    "g": 43,
    "b": 204
  },
  "hsl": {
    "h": 275.404,
    "s": 65.182,
    "l": 48.431
  },
  "oklch": {
    "l": 0.51576,
    "c": 0.23002,
    "h": 306.4
  },
  "luminance": 0.11491
}

Semantic roles & 50–950 ramp

primary
#8A2BCC
secondary
#A2D082
accent
#E84085
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#120815
muted
#817B83

Preview Lab

Preview with #8A2BCC

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

Preview Lab → · Contrast checker → · Palette generator →

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