#8A7FD5#8A7FD5

#8A7FD5 is a light, vivid blue. Relative luminance 0.254; OKLCH L 64.3% C 0.127 H 288.2°. Best body text is #000000 at 6.08:1 contrast (WCAG AA passes).

Color values

HEX#8A7FD5
RGBrgb(138, 127, 213)
HSLhsl(248, 51%, 67%)
HSVhsv(248, 40%, 84%)
CMYKcmyk(35.2%, 40.4%, 0%, 16.5%)
CIE-LABlab(57.45, 24.14, -42.84)
CIE-LCHlch(57.45, 49.17, 299.40°)
OKLaboklab(64.26% 0.0395 -0.1203)
OKLCHoklch(64.26% 0.127 288.2)
XYZxyz(30.0776, 25.3853, 66.2530)
Luminance0.2539 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7FD5 #CAD57F
analogous
#7F9FD5 #8A7FD5 #B57FD5
triadic
#8A7FD5 #D58A7F #7FD58A
tetradic
#8A7FD5 #D57F9F #CAD57F #7FD5B5
square
#8A7FD5 #D57F9F #CAD57F #7FD5B5
split-complementary
#8A7FD5 #D5B57F #9FD57F
monochromatic
#4436A4 #6051C6 #8A7FD5 #B4ADE4 #DEDBF3

Accessibility & contrast

On white

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

On black

6.08
#8A7FD5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7FD5
6.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7FD5#FFFFFF#000000##000000
##8A7FD51.003.466.086.08
#FFFFFF3.461.0021.0021.00
#0000006.0821.001.001.00
##0000006.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#638CD8
Deuteranopia (green-blind)
#6388D3
Tritanopia (blue-blind)
#778FA0
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #8a7fd5;
/* rgb */ color: rgb(138, 127, 213);
/* oklch */ color: oklch(64.3% 0.127 288.2);
Tailwind
colors: {
  custom: {
    50: '#afa4e2',
    500: '#8a7fd5',
    950: '#000000',
  },
}
SCSS
$custom: #8a7fd5;
$custom-light: #afa4e2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7fd5",
  "rgb": {
    "r": 138,
    "g": 127,
    "b": 213
  },
  "hsl": {
    "h": 247.674,
    "s": 50.588,
    "l": 66.667
  },
  "oklch": {
    "l": 0.64264,
    "c": 0.12659,
    "h": 288.2
  },
  "luminance": 0.25386
}

Semantic roles & 50–950 ramp

primary
#8A7FD5
secondary
#E2E6CA
accent
#BE28AB
background
#FAFAFD
surface
#F5F4FB
border
#CFCED4
text
#110F15
muted
#807F83

Preview Lab

Preview with #8A7FD5

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

Preview Lab → · Contrast checker → · Palette generator →

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