#8A7FB2#8A7FB2

#8A7FB2 is a light, moderate violet. Relative luminance 0.238; OKLCH L 62.6% C 0.077 H 294.0°. Best body text is #000000 at 5.76:1 contrast (WCAG AA passes).

Color values

HEX#8A7FB2
RGBrgb(138, 127, 178)
HSLhsl(253, 25%, 60%)
HSVhsv(253, 29%, 70%)
CMYKcmyk(22.5%, 28.7%, 0%, 30.2%)
CIE-LABlab(55.88, 15.17, -25.40)
CIE-LCHlch(55.88, 29.59, 300.84°)
OKLaboklab(62.55% 0.0311 -0.07)
OKLCHoklch(62.55% 0.077 294)
XYZxyz(26.1046, 23.7961, 45.3286)
Luminance0.2380 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7FB2 #A7B27F
analogous
#7F8EB2 #8A7FB2 #A47FB2
triadic
#8A7FB2 #B28A7F #7FB28A
tetradic
#8A7FB2 #B27F8E #A7B27F #7FB2A4
square
#8A7FB2 #B27F8E #A7B27F #7FB2A4
split-complementary
#8A7FB2 #B2A47F #8EB27F
monochromatic
#4E4572 #695C98 #8A7FB2 #ADA5C9 #D0CBE0

Accessibility & contrast

On white

3.65
#8A7FB2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.76
#8A7FB2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7FB2
5.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7FB2#FFFFFF#000000##000000
##8A7FB21.003.655.765.76
#FFFFFF3.651.0021.0021.00
#0000005.7621.001.001.00
##0000005.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#7386B4
Deuteranopia (green-blind)
#7485B1
Tritanopia (blue-blind)
#828791
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #8a7fb2;
/* rgb */ color: rgb(138, 127, 178);
/* oklch */ color: oklch(62.6% 0.077 294.0);
Tailwind
colors: {
  custom: {
    50: '#ada4c9',
    500: '#8a7fb2',
    950: '#000000',
  },
}
SCSS
$custom: #8a7fb2;
$custom-light: #ada4c9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7fb2",
  "rgb": {
    "r": 138,
    "g": 127,
    "b": 178
  },
  "hsl": {
    "h": 252.941,
    "s": 24.878,
    "l": 59.804
  },
  "oklch": {
    "l": 0.62551,
    "c": 0.07662,
    "h": 294
  },
  "luminance": 0.23796
}

Semantic roles & 50–950 ramp

primary
#8A7FB2
secondary
#CCD0BD
accent
#C167AE
background
#FAFAFC
surface
#F4F4F8
border
#CECED1
text
#100F13
muted
#7F7F82

Preview Lab

Preview with #8A7FB2

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

Preview Lab → · Contrast checker → · Palette generator →

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