#8A7BD4#8A7BD4

#8A7BD4 is a light, vivid violet. Relative luminance 0.243; OKLCH L 63.5% C 0.131 H 289.9°. Best body text is #000000 at 5.86:1 contrast (WCAG AA passes).

Color values

HEX#8A7BD4
RGBrgb(138, 123, 212)
HSLhsl(250, 51%, 66%)
HSVhsv(250, 42%, 83%)
CMYKcmyk(34.9%, 42%, 0%, 16.9%)
CIE-LABlab(56.41, 26.21, -43.92)
CIE-LCHlch(56.41, 51.15, 300.83°)
OKLaboklab(63.46% 0.0446 -0.1234)
OKLCHoklch(63.46% 0.131 289.9)
XYZxyz(29.4447, 24.3219, 65.4178)
Luminance0.2432 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7BD4 #C5D47B
analogous
#7B98D4 #8A7BD4 #B67BD4
triadic
#8A7BD4 #D48A7B #7BD48A
tetradic
#8A7BD4 #D47B98 #C5D47B #7BD4B6
square
#8A7BD4 #D47B98 #C5D47B #7BD4B6
split-complementary
#8A7BD4 #D4B67B #98D47B
monochromatic
#4634A0 #614DC5 #8A7BD4 #B3A9E3 #DCD7F2

Accessibility & contrast

On white

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

On black

5.86
#8A7BD4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7BD4
5.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7BD4#FFFFFF#000000##000000
##8A7BD41.003.585.865.86
#FFFFFF3.581.0021.0021.00
#0000005.8621.001.001.00
##0000005.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#5E89D7
Deuteranopia (green-blind)
#5F85D2
Tritanopia (blue-blind)
#788C9D
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #8a7bd4;
/* rgb */ color: rgb(138, 123, 212);
/* oklch */ color: oklch(63.5% 0.131 289.9);
Tailwind
colors: {
  custom: {
    50: '#afa1e1',
    500: '#8a7bd4',
    950: '#000000',
  },
}
SCSS
$custom: #8a7bd4;
$custom-light: #afa1e1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7bd4",
  "rgb": {
    "r": 138,
    "g": 123,
    "b": 212
  },
  "hsl": {
    "h": 250.112,
    "s": 50.857,
    "l": 65.686
  },
  "oklch": {
    "l": 0.63458,
    "c": 0.13123,
    "h": 289.9
  },
  "luminance": 0.24323
}

Semantic roles & 50–950 ramp

primary
#8A7BD4
secondary
#DFE4C7
accent
#BE27A5
background
#FBF9FD
surface
#F6F2FB
border
#D0CCD4
text
#110F15
muted
#807E83

Preview Lab

Preview with #8A7BD4

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

Preview Lab → · Contrast checker → · Palette generator →

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