#8A7BA2#8A7BA2

#8A7BA2 is a mid, moderate violet. Relative luminance 0.222; OKLCH L 61.1% C 0.060 H 302.2°. Best body text is #000000 at 5.44:1 contrast (WCAG AA passes).

Color values

HEX#8A7BA2
RGBrgb(138, 123, 162)
HSLhsl(263, 17%, 56%)
HSVhsv(263, 24%, 64%)
CMYKcmyk(14.8%, 24.1%, 0%, 36.5%)
CIE-LABlab(54.22, 13.75, -18.74)
CIE-LCHlch(54.22, 23.24, 306.27°)
OKLaboklab(61.06% 0.0322 -0.0511)
OKLCHoklch(61.06% 0.06 302.2)
XYZxyz(24.0845, 22.1778, 37.1873)
Luminance0.2218 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7BA2 #93A27B
analogous
#7B7FA2 #8A7BA2 #9D7BA2
triadic
#8A7BA2 #A28A7B #7BA28A
tetradic
#8A7BA2 #A27B7F #93A27B #7BA29D
square
#8A7BA2 #A27B7F #93A27B #7BA29D
split-complementary
#8A7BA2 #A29D7B #7FA27B
monochromatic
#4E435F #6B5D83 #8A7BA2 #AA9FBB #CAC3D5

Accessibility & contrast

On white

3.86
#8A7BA2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.44
#8A7BA2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7BA2
5.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7BA2#FFFFFF#000000##000000
##8A7BA21.003.865.445.44
#FFFFFF3.861.0021.0021.00
#0000005.4421.001.001.00
##0000005.4421.001.001.00

Color blindness preview

Protanopia (red-blind)
#7481A4
Deuteranopia (green-blind)
#7682A1
Tritanopia (blue-blind)
#868188
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #8a7ba2;
/* rgb */ color: rgb(138, 123, 162);
/* oklch */ color: oklch(61.1% 0.060 302.2);
Tailwind
colors: {
  custom: {
    50: '#aca1bd',
    500: '#8a7ba2',
    950: '#000000',
  },
}
SCSS
$custom: #8a7ba2;
$custom-light: #aca1bd;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7ba2",
  "rgb": {
    "r": 138,
    "g": 123,
    "b": 162
  },
  "hsl": {
    "h": 263.077,
    "s": 17.333,
    "l": 55.882
  },
  "oklch": {
    "l": 0.61059,
    "c": 0.06046,
    "h": 302.2
  },
  "luminance": 0.22178
}

Semantic roles & 50–950 ramp

primary
#8A7BA2
secondary
#BEC4B4
accent
#BA6E9D
background
#FAF9FB
surface
#F4F2F6
border
#CECCD0
text
#100F12
muted
#7F7E81

Preview Lab

Preview with #8A7BA2

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

Preview Lab → · Contrast checker → · Palette generator →

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