#8A7BB2#8A7BB2

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

Color values

HEX#8A7BB2
RGBrgb(138, 123, 178)
HSLhsl(256, 26%, 59%)
HSVhsv(256, 31%, 70%)
CMYKcmyk(22.5%, 30.9%, 0%, 30.2%)
CIE-LABlab(54.85, 17.51, -27.00)
CIE-LCHlch(54.85, 32.18, 302.97°)
OKLaboklab(61.76% 0.037 -0.0746)
OKLCHoklch(61.76% 0.083 296.4)
XYZxyz(25.5983, 22.7833, 45.1599)
Luminance0.2278 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7BB2 #A3B27B
analogous
#7B88B2 #8A7BB2 #A67BB2
triadic
#8A7BB2 #B28A7B #7BB28A
tetradic
#8A7BB2 #B27B88 #A3B27B #7BB2A6
square
#8A7BB2 #B27B88 #A3B27B #7BB2A6
split-complementary
#8A7BB2 #B2A67B #88B27B
monochromatic
#4F4271 #6A5897 #8A7BB2 #ACA2C9 #CFC8DF

Accessibility & contrast

On white

3.78
#8A7BB2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A7BB2#FFFFFF#000000##000000
##8A7BB21.003.785.565.56
#FFFFFF3.781.0021.0021.00
#0000005.5621.001.001.00
##0000005.5621.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8a7bb2;
/* rgb */ color: rgb(138, 123, 178);
/* oklch */ color: oklch(61.8% 0.083 296.4);
Tailwind
colors: {
  custom: {
    50: '#ada1c9',
    500: '#8a7bb2',
    950: '#000000',
  },
}
SCSS
$custom: #8a7bb2;
$custom-light: #ada1c9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7bb2",
  "rgb": {
    "r": 138,
    "g": 123,
    "b": 178
  },
  "hsl": {
    "h": 256.364,
    "s": 26.316,
    "l": 59.02
  },
  "oklch": {
    "l": 0.61755,
    "c": 0.08324,
    "h": 296.4
  },
  "luminance": 0.22784
}

Semantic roles & 50–950 ramp

primary
#8A7BB2
secondary
#C9CFBA
accent
#C365A9
background
#FAF9FC
surface
#F4F2F8
border
#CECCD1
text
#100F13
muted
#7F7E82

Preview Lab

Preview with #8A7BB2

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

Preview Lab → · Contrast checker → · Palette generator →

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