#8A2EBC#8A2EBC

#8A2EBC is a mid, highly saturated violet. Relative luminance 0.110; OKLCH L 50.6% C 0.212 H 310.4°. Best body text is #FFFFFF at 6.57:1 contrast (WCAG AA passes).

Color values

HEX#8A2EBC
RGBrgb(138, 46, 188)
HSLhsl(279, 61%, 46%)
HSVhsv(279, 76%, 74%)
CMYKcmyk(26.6%, 75.5%, 0%, 26.3%)
CIE-LABlab(39.56, 60.53, -57.06)
CIE-LCHlch(39.56, 83.18, 316.69°)
OKLaboklab(50.61% 0.1375 -0.1617)
OKLCHoklch(50.61% 0.212 310.4)
XYZxyz(20.5336, 10.9886, 48.6065)
Luminance0.1099 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2EBC #60BC2E
analogous
#432EBC #8A2EBC #BC2EA7
triadic
#8A2EBC #BC8A2E #2EBC8A
tetradic
#8A2EBC #BC432E #60BC2E #2EA7BC
square
#8A2EBC #BC432E #60BC2E #2EA7BC
split-complementary
#8A2EBC #A7BC2E #2EBC43
monochromatic
#42165A #66228B #8A2EBC #A752D5 #C084E1

Accessibility & contrast

On white

6.57
#8A2EBC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.20
#8A2EBC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A2EBC
6.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2EBC#FFFFFF#000000##FFFFFF
##8A2EBC1.006.573.206.57
#FFFFFF6.571.0021.001.00
#0000003.2021.001.0021.00
##FFFFFF6.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059C0
Deuteranopia (green-blind)
#075FB9
Tritanopia (blue-blind)
#835073
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #8a2ebc;
/* rgb */ color: rgb(138, 46, 188);
/* oklch */ color: oklch(50.6% 0.212 310.4);
Tailwind
colors: {
  custom: {
    50: '#b170d1',
    500: '#8a2ebc',
    950: '#000000',
  },
}
SCSS
$custom: #8a2ebc;
$custom-light: #b170d1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2ebc",
  "rgb": {
    "r": 138,
    "g": 46,
    "b": 188
  },
  "hsl": {
    "h": 278.873,
    "s": 60.684,
    "l": 45.882
  },
  "oklch": {
    "l": 0.50613,
    "c": 0.21225,
    "h": 310.4
  },
  "luminance": 0.10988
}

Semantic roles & 50–950 ramp

primary
#8A2EBC
secondary
#97CA7C
accent
#E4447C
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110814
muted
#807B82

Preview Lab

Preview with #8A2EBC

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

Preview Lab → · Contrast checker → · Palette generator →

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