#8A7DB2#8A7DB2

#8A7DB2 is a light, moderate violet. Relative luminance 0.233; OKLCH L 62.2% C 0.080 H 295.2°. Best body text is #000000 at 5.66:1 contrast (WCAG AA passes).

Color values

HEX#8A7DB2
RGBrgb(138, 125, 178)
HSLhsl(255, 26%, 59%)
HSVhsv(255, 30%, 70%)
CMYKcmyk(22.5%, 29.8%, 0%, 30.2%)
CIE-LABlab(55.36, 16.34, -26.20)
CIE-LCHlch(55.36, 30.88, 301.95°)
OKLaboklab(62.15% 0.0341 -0.0723)
OKLCHoklch(62.15% 0.08 295.2)
XYZxyz(25.8489, 23.2846, 45.2434)
Luminance0.2329 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7DB2 #A5B27D
analogous
#7D8BB2 #8A7DB2 #A57DB2
triadic
#8A7DB2 #B28A7D #7DB28A
tetradic
#8A7DB2 #B27D8B #A5B27D #7DB2A5
square
#8A7DB2 #B27D8B #A5B27D #7DB2A5
split-complementary
#8A7DB2 #B2A57D #8BB27D
monochromatic
#4F4371 #695A98 #8A7DB2 #ADA3C9 #CFCAE0

Accessibility & contrast

On white

3.71
#8A7DB2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.66
#8A7DB2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7DB2
5.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7DB2#FFFFFF#000000##000000
##8A7DB21.003.715.665.66
#FFFFFF3.711.0021.0021.00
#0000005.6621.001.001.00
##0000005.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#7085B4
Deuteranopia (green-blind)
#7284B1
Tritanopia (blue-blind)
#828690
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #8a7db2;
/* rgb */ color: rgb(138, 125, 178);
/* oklch */ color: oklch(62.2% 0.080 295.2);
Tailwind
colors: {
  custom: {
    50: '#ada2c9',
    500: '#8a7db2',
    950: '#000000',
  },
}
SCSS
$custom: #8a7db2;
$custom-light: #ada2c9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7db2",
  "rgb": {
    "r": 138,
    "g": 125,
    "b": 178
  },
  "hsl": {
    "h": 254.717,
    "s": 25.604,
    "l": 59.412
  },
  "oklch": {
    "l": 0.62152,
    "c": 0.07992,
    "h": 295.2
  },
  "luminance": 0.23285
}

Semantic roles & 50–950 ramp

primary
#8A7DB2
secondary
#CBD0BB
accent
#C266AB
background
#FAFAFC
surface
#F4F3F8
border
#CECDD1
text
#100F13
muted
#7F7F82

Preview Lab

Preview with #8A7DB2

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

Preview Lab → · Contrast checker → · Palette generator →

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