#8A7ABB#8A7ABB

#8A7ABB is a mid, moderate violet. Relative luminance 0.229; OKLCH L 62.0% C 0.098 H 294.7°. Best body text is #000000 at 5.58:1 contrast (WCAG AA passes).

Color values

HEX#8A7ABB
RGBrgb(138, 122, 187)
HSLhsl(255, 32%, 61%)
HSVhsv(255, 35%, 73%)
CMYKcmyk(26.2%, 34.8%, 0%, 26.7%)
CIE-LABlab(54.98, 20.32, -31.96)
CIE-LCHlch(54.98, 37.87, 302.45°)
OKLaboklab(61.98% 0.0408 -0.0888)
OKLCHoklch(61.98% 0.098 294.7)
XYZxyz(26.4083, 22.9099, 50.0348)
Luminance0.2291 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7ABB #ABBB7A
analogous
#7A8ABB #8A7ABB #AA7ABB
triadic
#8A7ABB #BB8A7A #7ABB8A
tetradic
#8A7ABB #BB7A8A #ABBB7A #7ABBAA
square
#8A7ABB #BB7A8A #ABBB7A #7ABBAA
split-complementary
#8A7ABB #BBAA7A #8ABB7A
monochromatic
#4E3F7B #6854A4 #8A7ABB #AEA2D0 #D1CBE4

Accessibility & contrast

On white

3.76
#8A7ABB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.58
#8A7ABB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7ABB
5.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7ABB#FFFFFF#000000##000000
##8A7ABB1.003.765.585.58
#FFFFFF3.761.0021.0021.00
#0000005.5821.001.001.00
##0000005.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#6984BE
Deuteranopia (green-blind)
#6B83B9
Tritanopia (blue-blind)
#808592
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #8a7abb;
/* rgb */ color: rgb(138, 122, 187);
/* oklch */ color: oklch(62.0% 0.098 294.7);
Tailwind
colors: {
  custom: {
    50: '#ada0cf',
    500: '#8a7abb',
    950: '#000000',
  },
}
SCSS
$custom: #8a7abb;
$custom-light: #ada0cf;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7abb",
  "rgb": {
    "r": 138,
    "g": 122,
    "b": 187
  },
  "hsl": {
    "h": 254.769,
    "s": 32.338,
    "l": 60.588
  },
  "oklch": {
    "l": 0.61983,
    "c": 0.0977,
    "h": 294.7
  },
  "luminance": 0.2291
}

Semantic roles & 50–950 ramp

primary
#8A7ABB
secondary
#CFD5BC
accent
#AB3A8F
background
#FAF9FC
surface
#F4F2F9
border
#CECCD2
text
#100E14
muted
#7F7E82

Preview Lab

Preview with #8A7ABB

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

Preview Lab → · Contrast checker → · Palette generator →

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