#8A2EBD#8A2EBD

#8A2EBD is a mid, highly saturated violet. Relative luminance 0.110; OKLCH L 50.7% C 0.213 H 310.1°. Best body text is #FFFFFF at 6.55:1 contrast (WCAG AA passes).

Color values

HEX#8A2EBD
RGBrgb(138, 46, 189)
HSLhsl(279, 61%, 46%)
HSVhsv(279, 76%, 74%)
CMYKcmyk(27%, 75.7%, 0%, 25.9%)
CIE-LABlab(39.63, 60.74, -57.53)
CIE-LCHlch(39.63, 83.66, 316.56°)
OKLaboklab(50.69% 0.1373 -0.1631)
OKLCHoklch(50.69% 0.213 310.1)
XYZxyz(20.6417, 11.0318, 49.1762)
Luminance0.1103 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2EBD #61BD2E
analogous
#422EBD #8A2EBD #BD2EA8
triadic
#8A2EBD #BD8A2E #2EBD8A
tetradic
#8A2EBD #BD422E #61BD2E #2EA8BD
square
#8A2EBD #BD422E #61BD2E #2EA8BD
split-complementary
#8A2EBD #A8BD2E #2EBD42
monochromatic
#42165B #66228C #8A2EBD #A753D5 #C084E1

Accessibility & contrast

On white

6.55
#8A2EBD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.21
#8A2EBD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A2EBD
6.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2EBD#FFFFFF#000000##FFFFFF
##8A2EBD1.006.553.216.55
#FFFFFF6.551.0021.001.00
#0000003.2121.001.0021.00
##FFFFFF6.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AC1
Deuteranopia (green-blind)
#035FBA
Tritanopia (blue-blind)
#835074
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #8a2ebd;
/* rgb */ color: rgb(138, 46, 189);
/* oklch */ color: oklch(50.7% 0.213 310.1);
Tailwind
colors: {
  custom: {
    50: '#b171d2',
    500: '#8a2ebd',
    950: '#000000',
  },
}
SCSS
$custom: #8a2ebd;
$custom-light: #b171d2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2ebd",
  "rgb": {
    "r": 138,
    "g": 46,
    "b": 189
  },
  "hsl": {
    "h": 278.601,
    "s": 60.851,
    "l": 46.078
  },
  "oklch": {
    "l": 0.50687,
    "c": 0.21318,
    "h": 310.1
  },
  "luminance": 0.11031
}

Semantic roles & 50–950 ramp

primary
#8A2EBD
secondary
#98CA7C
accent
#E4447D
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#110814
muted
#807B83

Preview Lab

Preview with #8A2EBD

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

Preview Lab → · Contrast checker → · Palette generator →

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