#8A7FD4#8A7FD4

#8A7FD4 is a light, vivid blue. Relative luminance 0.253; OKLCH L 64.2% C 0.125 H 288.3°. Best body text is #000000 at 6.07:1 contrast (WCAG AA passes).

Color values

HEX#8A7FD4
RGBrgb(138, 127, 212)
HSLhsl(248, 50%, 66%)
HSVhsv(248, 40%, 83%)
CMYKcmyk(34.9%, 40.1%, 0%, 16.9%)
CIE-LABlab(57.40, 23.87, -42.36)
CIE-LCHlch(57.40, 48.62, 299.40°)
OKLaboklab(64.21% 0.0393 -0.1189)
OKLCHoklch(64.21% 0.125 288.3)
XYZxyz(29.9511, 25.3347, 65.5866)
Luminance0.2534 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7FD4 #C9D47F
analogous
#7F9FD4 #8A7FD4 #B57FD4
triadic
#8A7FD4 #D48A7F #7FD48A
tetradic
#8A7FD4 #D47F9F #C9D47F #7FD4B5
square
#8A7FD4 #D47F9F #C9D47F #7FD4B5
split-complementary
#8A7FD4 #D4B57F #9FD47F
monochromatic
#4436A2 #6051C5 #8A7FD4 #B4ADE3 #DEDBF3

Accessibility & contrast

On white

3.46
#8A7FD4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.07
#8A7FD4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7FD4
6.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7FD4#FFFFFF#000000##000000
##8A7FD41.003.466.076.07
#FFFFFF3.461.0021.0021.00
#0000006.0721.001.001.00
##0000006.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#648CD7
Deuteranopia (green-blind)
#6388D2
Tritanopia (blue-blind)
#778F9F
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #8a7fd4;
/* rgb */ color: rgb(138, 127, 212);
/* oklch */ color: oklch(64.2% 0.125 288.3);
Tailwind
colors: {
  custom: {
    50: '#afa4e1',
    500: '#8a7fd4',
    950: '#000000',
  },
}
SCSS
$custom: #8a7fd4;
$custom-light: #afa4e1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7fd4",
  "rgb": {
    "r": 138,
    "g": 127,
    "b": 212
  },
  "hsl": {
    "h": 247.765,
    "s": 49.708,
    "l": 66.471
  },
  "oklch": {
    "l": 0.64211,
    "c": 0.12518,
    "h": 288.3
  },
  "luminance": 0.25335
}

Semantic roles & 50–950 ramp

primary
#8A7FD4
secondary
#E2E5CA
accent
#BD28AA
background
#FAFAFD
surface
#F5F4FB
border
#CFCED4
text
#110F15
muted
#807F83

Preview Lab

Preview with #8A7FD4

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

Preview Lab → · Contrast checker → · Palette generator →

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