#8A7BD2#8A7BD2

#8A7BD2 is a light, vivid violet. Relative luminance 0.242; OKLCH L 63.3% C 0.128 H 290.2°. Best body text is #000000 at 5.84:1 contrast (WCAG AA passes).

Color values

HEX#8A7BD2
RGBrgb(138, 123, 210)
HSLhsl(250, 49%, 65%)
HSVhsv(250, 41%, 82%)
CMYKcmyk(34.3%, 41.4%, 0%, 17.6%)
CIE-LABlab(56.31, 25.68, -42.95)
CIE-LCHlch(56.31, 50.04, 300.88°)
OKLaboklab(63.35% 0.0443 -0.1206)
OKLCHoklch(63.35% 0.128 290.2)
XYZxyz(29.1940, 24.2216, 64.0974)
Luminance0.2422 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7BD2 #C3D27B
analogous
#7B97D2 #8A7BD2 #B67BD2
triadic
#8A7BD2 #D28A7B #7BD28A
tetradic
#8A7BD2 #D27B97 #C3D27B #7BD2B6
square
#8A7BD2 #D27B97 #C3D27B #7BD2B6
split-complementary
#8A7BD2 #D2B67B #97D27B
monochromatic
#47369D #624DC2 #8A7BD2 #B2A9E2 #DBD6F1

Accessibility & contrast

On white

3.59
#8A7BD2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.84
#8A7BD2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7BD2
5.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7BD2#FFFFFF#000000##000000
##8A7BD21.003.595.845.84
#FFFFFF3.591.0021.0021.00
#0000005.8421.001.001.00
##0000005.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#5F89D5
Deuteranopia (green-blind)
#6085D0
Tritanopia (blue-blind)
#788B9C
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #8a7bd2;
/* rgb */ color: rgb(138, 123, 210);
/* oklch */ color: oklch(63.3% 0.128 290.2);
Tailwind
colors: {
  custom: {
    50: '#afa1e0',
    500: '#8a7bd2',
    950: '#000000',
  },
}
SCSS
$custom: #8a7bd2;
$custom-light: #afa1e0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7bd2",
  "rgb": {
    "r": 138,
    "g": 123,
    "b": 210
  },
  "hsl": {
    "h": 250.345,
    "s": 49.153,
    "l": 65.294
  },
  "oklch": {
    "l": 0.6335,
    "c": 0.12845,
    "h": 290.2
  },
  "luminance": 0.24222
}

Semantic roles & 50–950 ramp

primary
#8A7BD2
secondary
#DEE3C6
accent
#BC29A3
background
#FAF9FD
surface
#F5F2FB
border
#CFCCD4
text
#110F15
muted
#807E83

Preview Lab

Preview with #8A7BD2

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

Preview Lab → · Contrast checker → · Palette generator →

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