#8A7CB3#8A7CB3

#8A7CB3 is a mid, moderate violet. Relative luminance 0.231; OKLCH L 62.0% C 0.083 H 295.6°. Best body text is #000000 at 5.61:1 contrast (WCAG AA passes).

Color values

HEX#8A7CB3
RGBrgb(138, 124, 179)
HSLhsl(255, 27%, 59%)
HSVhsv(255, 31%, 70%)
CMYKcmyk(22.9%, 30.7%, 0%, 29.8%)
CIE-LABlab(55.15, 17.17, -27.11)
CIE-LCHlch(55.15, 32.09, 302.35°)
OKLaboklab(62% 0.0358 -0.0749)
OKLCHoklch(62% 0.083 295.6)
XYZxyz(25.8237, 23.0730, 45.7321)
Luminance0.2307 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7CB3 #A5B37C
analogous
#7C8AB3 #8A7CB3 #A67CB3
triadic
#8A7CB3 #B38A7C #7CB38A
tetradic
#8A7CB3 #B37C8A #A5B37C #7CB3A6
square
#8A7CB3 #B37C8A #A5B37C #7CB3A6
split-complementary
#8A7CB3 #B3A67C #8AB37C
monochromatic
#4F4272 #695999 #8A7CB3 #ADA3C9 #CFC9E0

Accessibility & contrast

On white

3.74
#8A7CB3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.61
#8A7CB3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7CB3
5.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7CB3#FFFFFF#000000##000000
##8A7CB31.003.745.615.61
#FFFFFF3.741.0021.0021.00
#0000005.6121.001.001.00
##0000005.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#6F84B5
Deuteranopia (green-blind)
#7183B1
Tritanopia (blue-blind)
#828590
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #8a7cb3;
/* rgb */ color: rgb(138, 124, 179);
/* oklch */ color: oklch(62.0% 0.083 295.6);
Tailwind
colors: {
  custom: {
    50: '#ada2ca',
    500: '#8a7cb3',
    950: '#000000',
  },
}
SCSS
$custom: #8a7cb3;
$custom-light: #ada2ca;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7cb3",
  "rgb": {
    "r": 138,
    "g": 124,
    "b": 179
  },
  "hsl": {
    "h": 255.273,
    "s": 26.57,
    "l": 59.412
  },
  "oklch": {
    "l": 0.61999,
    "c": 0.08301,
    "h": 295.6
  },
  "luminance": 0.23073
}

Semantic roles & 50–950 ramp

primary
#8A7CB3
secondary
#CBD0BB
accent
#C365AB
background
#FAF9FC
surface
#F4F2F8
border
#CECCD1
text
#100F13
muted
#7F7E82

Preview Lab

Preview with #8A7CB3

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

Preview Lab → · Contrast checker → · Palette generator →

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