#8A7DF7#8A7DF7

#8A7DF7 is a light, vivid blue. Relative luminance 0.268; OKLCH L 65.9% C 0.176 H 285.3°. Best body text is #000000 at 6.36:1 contrast (WCAG AA passes).

Color values

HEX#8A7DF7
RGBrgb(138, 125, 247)
HSLhsl(246, 88%, 73%)
HSVhsv(246, 49%, 97%)
CMYKcmyk(44.1%, 49.4%, 0%, 3.1%)
CIE-LABlab(58.77, 34.70, -59.69)
CIE-LCHlch(58.77, 69.05, 300.17°)
OKLaboklab(65.85% 0.0465 -0.1696)
OKLCHoklch(65.85% 0.176 285.3)
XYZxyz(34.5985, 26.7845, 91.3246)
Luminance0.2679 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7DF7 #EAF77D
analogous
#7DADF7 #8A7DF7 #C77DF7
triadic
#8A7DF7 #F78A7D #7DF78A
tetradic
#8A7DF7 #F77DAD #EAF77D #7DF7C7
square
#8A7DF7 #F77DAD #EAF77D #7DF7C7
split-complementary
#8A7DF7 #F7C77D #ADF77D
monochromatic
#260EEB #5643F3 #8A7DF7 #BEB7FB #E5E2FD

Accessibility & contrast

On white

3.30
#8A7DF7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.36
#8A7DF7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7DF7
6.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7DF7#FFFFFF#000000##000000
##8A7DF71.003.306.366.36
#FFFFFF3.301.0021.0021.00
#0000006.3621.001.001.00
##0000006.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#4891FB
Deuteranopia (green-blind)
#448AF4
Tritanopia (blue-blind)
#6897AE
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #8a7df7;
/* rgb */ color: rgb(138, 125, 247);
/* oklch */ color: oklch(65.9% 0.176 285.3);
Tailwind
colors: {
  custom: {
    50: '#b2a3fa',
    500: '#8a7df7',
    950: '#000000',
  },
}
SCSS
$custom: #8a7df7;
$custom-light: #b2a3fa;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7df7",
  "rgb": {
    "r": 138,
    "g": 125,
    "b": 247
  },
  "hsl": {
    "h": 246.393,
    "s": 88.406,
    "l": 72.941
  },
  "oklch": {
    "l": 0.65853,
    "c": 0.17584,
    "h": 285.3
  },
  "luminance": 0.26786
}

Semantic roles & 50–950 ramp

primary
#8A7DF7
secondary
#F2F5D6
accent
#E500CD
background
#FBFAFF
surface
#F6F3FF
border
#D0CDD7
text
#110F17
muted
#807F85

Preview Lab

Preview with #8A7DF7

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

Preview Lab → · Contrast checker → · Palette generator →

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