#8A7DCA#8A7DCA

#8A7DCA is a light, moderate violet. Relative luminance 0.243; OKLCH L 63.3% C 0.114 H 290.5°. Best body text is #000000 at 5.87:1 contrast (WCAG AA passes).

Color values

HEX#8A7DCA
RGBrgb(138, 125, 202)
HSLhsl(250, 42%, 64%)
HSVhsv(250, 38%, 79%)
CMYKcmyk(31.7%, 38.1%, 0%, 20.8%)
CIE-LABlab(56.42, 22.40, -38.25)
CIE-LCHlch(56.42, 44.32, 300.35°)
OKLaboklab(63.31% 0.04 -0.1069)
OKLCHoklch(63.31% 0.114 290.5)
XYZxyz(28.4728, 24.3342, 59.0625)
Luminance0.2434 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7DCA #BDCA7D
analogous
#7D97CA #8A7DCA #B17DCA
triadic
#8A7DCA #CA8A7D #7DCA8A
tetradic
#8A7DCA #CA7D97 #BDCA7D #7DCAB1
square
#8A7DCA #CA7D97 #BDCA7D #7DCAB1
split-complementary
#8A7DCA #CAB17D #97CA7D
monochromatic
#4A3B91 #6352B8 #8A7DCA #B1A8DC #D8D4ED

Accessibility & contrast

On white

3.58
#8A7DCA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.87
#8A7DCA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7DCA
5.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7DCA#FFFFFF#000000##000000
##8A7DCA1.003.585.875.87
#FFFFFF3.581.0021.0021.00
#0000005.8721.001.001.00
##0000005.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#6689CD
Deuteranopia (green-blind)
#6786C8
Tritanopia (blue-blind)
#7B8B9A
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #8a7dca;
/* rgb */ color: rgb(138, 125, 202);
/* oklch */ color: oklch(63.3% 0.114 290.5);
Tailwind
colors: {
  custom: {
    50: '#aea2da',
    500: '#8a7dca',
    950: '#000000',
  },
}
SCSS
$custom: #8a7dca;
$custom-light: #aea2da;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7dca",
  "rgb": {
    "r": 138,
    "g": 125,
    "b": 202
  },
  "hsl": {
    "h": 250.13,
    "s": 42.077,
    "l": 64.118
  },
  "oklch": {
    "l": 0.63308,
    "c": 0.11416,
    "h": 290.5
  },
  "luminance": 0.24335
}

Semantic roles & 50–950 ramp

primary
#8A7DCA
secondary
#DADFC4
accent
#B5309F
background
#FAFAFD
surface
#F5F3FB
border
#CFCDD4
text
#100F15
muted
#7F7F83

Preview Lab

Preview with #8A7DCA

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

Preview Lab → · Contrast checker → · Palette generator →

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