#8A7DB3#8A7DB3

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

Color values

HEX#8A7DB3
RGBrgb(138, 125, 179)
HSLhsl(254, 26%, 60%)
HSVhsv(254, 30%, 70%)
CMYKcmyk(22.9%, 30.2%, 0%, 29.8%)
CIE-LABlab(55.41, 16.58, -26.71)
CIE-LCHlch(55.41, 31.44, 301.83°)
OKLaboklab(62.2% 0.0344 -0.0737)
OKLCHoklch(62.2% 0.081 295)
XYZxyz(25.9497, 23.3249, 45.7741)
Luminance0.2333 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7DB3 #A6B37D
analogous
#7D8BB3 #8A7DB3 #A57DB3
triadic
#8A7DB3 #B38A7D #7DB38A
tetradic
#8A7DB3 #B37D8B #A6B37D #7DB3A5
square
#8A7DB3 #B37D8B #A6B37D #7DB3A5
split-complementary
#8A7DB3 #B3A57D #8BB37D
monochromatic
#4E4373 #695A99 #8A7DB3 #ADA4CA #D0CAE0

Accessibility & contrast

On white

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

On black

5.67
#8A7DB3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7DB3
5.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7DB3#FFFFFF#000000##000000
##8A7DB31.003.715.675.67
#FFFFFF3.711.0021.0021.00
#0000005.6721.001.001.00
##0000005.6721.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8a7db3;
/* rgb */ color: rgb(138, 125, 179);
/* oklch */ color: oklch(62.2% 0.081 295.0);
Tailwind
colors: {
  custom: {
    50: '#ada2ca',
    500: '#8a7db3',
    950: '#000000',
  },
}
SCSS
$custom: #8a7db3;
$custom-light: #ada2ca;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7db3",
  "rgb": {
    "r": 138,
    "g": 125,
    "b": 179
  },
  "hsl": {
    "h": 254.444,
    "s": 26.214,
    "l": 59.608
  },
  "oklch": {
    "l": 0.62197,
    "c": 0.08135,
    "h": 295
  },
  "luminance": 0.23325
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8A7DB3

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

Preview Lab → · Contrast checker → · Palette generator →

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