#8A7DB5#8A7DB5

#8A7DB5 is a light, moderate violet. Relative luminance 0.234; OKLCH L 62.3% C 0.084 H 294.5°. Best body text is #000000 at 5.68:1 contrast (WCAG AA passes).

Color values

HEX#8A7DB5
RGBrgb(138, 125, 181)
HSLhsl(254, 27%, 60%)
HSVhsv(254, 31%, 71%)
CMYKcmyk(23.8%, 30.9%, 0%, 29%)
CIE-LABlab(55.49, 17.07, -27.73)
CIE-LCHlch(55.49, 32.56, 301.62°)
OKLaboklab(62.29% 0.0349 -0.0766)
OKLCHoklch(62.29% 0.084 294.5)
XYZxyz(26.1534, 23.4064, 46.8471)
Luminance0.2341 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7DB5 #A8B57D
analogous
#7D8CB5 #8A7DB5 #A67DB5
triadic
#8A7DB5 #B58A7D #7DB58A
tetradic
#8A7DB5 #B57D8C #A8B57D #7DB5A6
square
#8A7DB5 #B57D8C #A8B57D #7DB5A6
split-complementary
#8A7DB5 #B5A67D #8CB57D
monochromatic
#4E4375 #68599C #8A7DB5 #ADA4CB #D0CBE1

Accessibility & contrast

On white

3.70
#8A7DB5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.68
#8A7DB5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7DB5
5.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7DB5#FFFFFF#000000##000000
##8A7DB51.003.705.685.68
#FFFFFF3.701.0021.0021.00
#0000005.6821.001.001.00
##0000005.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#6F85B7
Deuteranopia (green-blind)
#7184B3
Tritanopia (blue-blind)
#818691
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #8a7db5;
/* rgb */ color: rgb(138, 125, 181);
/* oklch */ color: oklch(62.3% 0.084 294.5);
Tailwind
colors: {
  custom: {
    50: '#ada2cb',
    500: '#8a7db5',
    950: '#000000',
  },
}
SCSS
$custom: #8a7db5;
$custom-light: #ada2cb;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7db5",
  "rgb": {
    "r": 138,
    "g": 125,
    "b": 181
  },
  "hsl": {
    "h": 253.929,
    "s": 27.451,
    "l": 60
  },
  "oklch": {
    "l": 0.62288,
    "c": 0.08423,
    "h": 294.5
  },
  "luminance": 0.23407
}

Semantic roles & 50–950 ramp

primary
#8A7DB5
secondary
#CDD2BC
accent
#C464AE
background
#FAFAFC
surface
#F4F3F8
border
#CECDD1
text
#100F13
muted
#7F7F82

Preview Lab

Preview with #8A7DB5

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

Preview Lab → · Contrast checker → · Palette generator →

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