#8A7BB3#8A7BB3

#8A7BB3 is a mid, moderate violet. Relative luminance 0.228; OKLCH L 61.8% C 0.085 H 296.1°. Best body text is #000000 at 5.56:1 contrast (WCAG AA passes).

Color values

HEX#8A7BB3
RGBrgb(138, 123, 179)
HSLhsl(256, 27%, 59%)
HSVhsv(256, 31%, 70%)
CMYKcmyk(22.9%, 31.3%, 0%, 29.8%)
CIE-LABlab(54.89, 17.76, -27.51)
CIE-LCHlch(54.89, 32.74, 302.84°)
OKLaboklab(61.8% 0.0373 -0.076)
OKLCHoklch(61.8% 0.085 296.1)
XYZxyz(25.6990, 22.8236, 45.6906)
Luminance0.2282 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7BB3 #A4B37B
analogous
#7B88B3 #8A7BB3 #A67BB3
triadic
#8A7BB3 #B38A7B #7BB38A
tetradic
#8A7BB3 #B37B88 #A4B37B #7BB3A6
square
#8A7BB3 #B37B88 #A4B37B #7BB3A6
split-complementary
#8A7BB3 #B3A67B #88B37B
monochromatic
#4F4272 #695899 #8A7BB3 #ACA2C9 #CFC9E0

Accessibility & contrast

On white

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

On black

5.56
#8A7BB3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7BB3
5.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7BB3#FFFFFF#000000##000000
##8A7BB31.003.775.565.56
#FFFFFF3.771.0021.0021.00
#0000005.5621.001.001.00
##0000005.5621.001.001.00

Color blindness preview

Protanopia (red-blind)
#6E84B5
Deuteranopia (green-blind)
#7083B1
Tritanopia (blue-blind)
#82848F
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #8a7bb3;
/* rgb */ color: rgb(138, 123, 179);
/* oklch */ color: oklch(61.8% 0.085 296.1);
Tailwind
colors: {
  custom: {
    50: '#ada1ca',
    500: '#8a7bb3',
    950: '#000000',
  },
}
SCSS
$custom: #8a7bb3;
$custom-light: #ada1ca;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7bb3",
  "rgb": {
    "r": 138,
    "g": 123,
    "b": 179
  },
  "hsl": {
    "h": 256.071,
    "s": 26.923,
    "l": 59.216
  },
  "oklch": {
    "l": 0.61801,
    "c": 0.08467,
    "h": 296.1
  },
  "luminance": 0.22824
}

Semantic roles & 50–950 ramp

primary
#8A7BB3
secondary
#CAD0BA
accent
#C365AA
background
#FAF9FC
surface
#F4F2F8
border
#CECCD1
text
#100F13
muted
#7F7E82

Preview Lab

Preview with #8A7BB3

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

Preview Lab → · Contrast checker → · Palette generator →

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