#8A7ABA#8A7ABA

#8A7ABA is a mid, moderate violet. Relative luminance 0.229; OKLCH L 61.9% C 0.096 H 294.9°. Best body text is #000000 at 5.57:1 contrast (WCAG AA passes).

Color values

HEX#8A7ABA
RGBrgb(138, 122, 186)
HSLhsl(255, 32%, 60%)
HSVhsv(255, 34%, 73%)
CMYKcmyk(25.8%, 34.4%, 0%, 27.1%)
CIE-LABlab(54.94, 20.07, -31.45)
CIE-LCHlch(54.94, 37.31, 302.54°)
OKLaboklab(61.93% 0.0406 -0.0873)
OKLCHoklch(61.93% 0.096 294.9)
XYZxyz(26.3016, 22.8672, 49.4730)
Luminance0.2287 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7ABA #AABA7A
analogous
#7A8ABA #8A7ABA #AA7ABA
triadic
#8A7ABA #BA8A7A #7ABA8A
tetradic
#8A7ABA #BA7A8A #AABA7A #7ABAAA
square
#8A7ABA #BA7A8A #AABA7A #7ABAAA
split-complementary
#8A7ABA #BAAA7A #8ABA7A
monochromatic
#4E3F7A #6854A2 #8A7ABA #ADA2CF #D1CBE4

Accessibility & contrast

On white

3.77
#8A7ABA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.57
#8A7ABA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7ABA
5.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7ABA#FFFFFF#000000##000000
##8A7ABA1.003.775.575.57
#FFFFFF3.771.0021.0021.00
#0000005.5721.001.001.00
##0000005.5721.001.001.00

Color blindness preview

Protanopia (red-blind)
#6A84BD
Deuteranopia (green-blind)
#6C83B8
Tritanopia (blue-blind)
#808591
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #8a7aba;
/* rgb */ color: rgb(138, 122, 186);
/* oklch */ color: oklch(61.9% 0.096 294.9);
Tailwind
colors: {
  custom: {
    50: '#ada0cf',
    500: '#8a7aba',
    950: '#000000',
  },
}
SCSS
$custom: #8a7aba;
$custom-light: #ada0cf;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7aba",
  "rgb": {
    "r": 138,
    "g": 122,
    "b": 186
  },
  "hsl": {
    "h": 255,
    "s": 31.683,
    "l": 60.392
  },
  "oklch": {
    "l": 0.61935,
    "c": 0.09628,
    "h": 294.9
  },
  "luminance": 0.22868
}

Semantic roles & 50–950 ramp

primary
#8A7ABA
secondary
#CED4BC
accent
#AA3B8F
background
#FAF9FC
surface
#F4F2F9
border
#CECCD2
text
#100E13
muted
#7F7E82

Preview Lab

Preview with #8A7ABA

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

Preview Lab → · Contrast checker → · Palette generator →

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