#8A7FD2#8A7FD2

#8A7FD2 is a light, vivid blue. Relative luminance 0.252; OKLCH L 64.1% C 0.122 H 288.5°. Best body text is #000000 at 6.05:1 contrast (WCAG AA passes).

Color values

HEX#8A7FD2
RGBrgb(138, 127, 210)
HSLhsl(248, 48%, 66%)
HSVhsv(248, 40%, 82%)
CMYKcmyk(34.3%, 39.5%, 0%, 17.6%)
CIE-LABlab(57.30, 23.33, -41.38)
CIE-LCHlch(57.30, 47.51, 299.42°)
OKLaboklab(64.11% 0.0389 -0.116)
OKLCHoklch(64.11% 0.122 288.5)
XYZxyz(29.7004, 25.2344, 64.2662)
Luminance0.2524 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7FD2 #C7D27F
analogous
#7F9DD2 #8A7FD2 #B37FD2
triadic
#8A7FD2 #D28A7F #7FD28A
tetradic
#8A7FD2 #D27F9D #C7D27F #7FD2B3
square
#8A7FD2 #D27F9D #C7D27F #7FD2B3
split-complementary
#8A7FD2 #D2B37F #9DD27F
monochromatic
#45389F #6152C2 #8A7FD2 #B3ACE2 #DDDAF2

Accessibility & contrast

On white

3.47
#8A7FD2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.05
#8A7FD2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7FD2
6.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7FD2#FFFFFF#000000##000000
##8A7FD21.003.476.056.05
#FFFFFF3.471.0021.0021.00
#0000006.0521.001.001.00
##0000006.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#658BD5
Deuteranopia (green-blind)
#6588D0
Tritanopia (blue-blind)
#788F9E
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #8a7fd2;
/* rgb */ color: rgb(138, 127, 210);
/* oklch */ color: oklch(64.1% 0.122 288.5);
Tailwind
colors: {
  custom: {
    50: '#aea4e0',
    500: '#8a7fd2',
    950: '#000000',
  },
}
SCSS
$custom: #8a7fd2;
$custom-light: #aea4e0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7fd2",
  "rgb": {
    "r": 138,
    "g": 127,
    "b": 210
  },
  "hsl": {
    "h": 247.952,
    "s": 47.977,
    "l": 66.078
  },
  "oklch": {
    "l": 0.64105,
    "c": 0.12237,
    "h": 288.5
  },
  "luminance": 0.25235
}

Semantic roles & 50–950 ramp

primary
#8A7FD2
secondary
#E0E4C9
accent
#BB2AA8
background
#FAFAFD
surface
#F5F4FB
border
#CFCED4
text
#110F15
muted
#807F83

Preview Lab

Preview with #8A7FD2

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

Preview Lab → · Contrast checker → · Palette generator →

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