#8A7FDF#8A7FDF

#8A7FDF is a light, vivid blue. Relative luminance 0.259; OKLCH L 64.8% C 0.140 H 287.0°. Best body text is #000000 at 6.18:1 contrast (WCAG AA passes).

Color values

HEX#8A7FDF
RGBrgb(138, 127, 223)
HSLhsl(247, 60%, 69%)
HSVhsv(247, 43%, 87%)
CMYKcmyk(38.1%, 43%, 0%, 12.5%)
CIE-LABlab(57.95, 26.85, -47.66)
CIE-LCHlch(57.95, 54.70, 299.39°)
OKLaboklab(64.81% 0.0412 -0.1343)
OKLCHoklch(64.81% 0.14 287)
XYZxyz(31.3862, 25.9087, 73.1449)
Luminance0.2591 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7FDF #D4DF7F
analogous
#7FA4DF #8A7FDF #BA7FDF
triadic
#8A7FDF #DF8A7F #7FDF8A
tetradic
#8A7FDF #DF7FA4 #D4DF7F #7FDFBA
square
#8A7FDF #DF7FA4 #D4DF7F #7FDFBA
split-complementary
#8A7FDF #DFBA7F #A4DF7F
monochromatic
#3D2EB6 #5D4ED3 #8A7FDF #B7B0EB #E4E1F7

Accessibility & contrast

On white

3.40
#8A7FDF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.18
#8A7FDF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7FDF
6.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7FDF#FFFFFF#000000##000000
##8A7FDF1.003.406.186.18
#FFFFFF3.401.0021.0021.00
#0000006.1821.001.001.00
##0000006.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#5E8EE3
Deuteranopia (green-blind)
#5C89DD
Tritanopia (blue-blind)
#7392A4
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #8a7fdf;
/* rgb */ color: rgb(138, 127, 223);
/* oklch */ color: oklch(64.8% 0.140 287.0);
Tailwind
colors: {
  custom: {
    50: '#afa4e9',
    500: '#8a7fdf',
    950: '#000000',
  },
}
SCSS
$custom: #8a7fdf;
$custom-light: #afa4e9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7fdf",
  "rgb": {
    "r": 138,
    "g": 127,
    "b": 223
  },
  "hsl": {
    "h": 246.875,
    "s": 60,
    "l": 68.627
  },
  "oklch": {
    "l": 0.64809,
    "c": 0.14049,
    "h": 287
  },
  "luminance": 0.2591
}

Semantic roles & 50–950 ramp

primary
#8A7FDF
secondary
#E8EBCF
accent
#C81EB4
background
#FBFAFE
surface
#F6F4FD
border
#D0CED5
text
#110F16
muted
#807F84

Preview Lab

Preview with #8A7FDF

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

Preview Lab → · Contrast checker → · Palette generator →

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