#8A7FD3#8A7FD3

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

Color values

HEX#8A7FD3
RGBrgb(138, 127, 211)
HSLhsl(248, 49%, 66%)
HSVhsv(248, 40%, 83%)
CMYKcmyk(34.6%, 39.8%, 0%, 17.3%)
CIE-LABlab(57.35, 23.60, -41.87)
CIE-LCHlch(57.35, 48.06, 299.41°)
OKLaboklab(64.16% 0.0391 -0.1174)
OKLCHoklch(64.16% 0.124 288.4)
XYZxyz(29.8253, 25.2844, 64.9243)
Luminance0.2529 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7FD3 #C8D37F
analogous
#7F9ED3 #8A7FD3 #B47FD3
triadic
#8A7FD3 #D38A7F #7FD38A
tetradic
#8A7FD3 #D37F9E #C8D37F #7FD3B4
square
#8A7FD3 #D37F9E #C8D37F #7FD3B4
split-complementary
#8A7FD3 #D3B47F #9ED37F
monochromatic
#4537A0 #6051C3 #8A7FD3 #B4ADE3 #DDDAF2

Accessibility & contrast

On white

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

On black

6.06
#8A7FD3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7FD3
6.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7FD3#FFFFFF#000000##000000
##8A7FD31.003.476.066.06
#FFFFFF3.471.0021.0021.00
#0000006.0621.001.001.00
##0000006.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#648CD6
Deuteranopia (green-blind)
#6488D1
Tritanopia (blue-blind)
#788F9F
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #8a7fd3;
/* rgb */ color: rgb(138, 127, 211);
/* oklch */ color: oklch(64.2% 0.124 288.4);
Tailwind
colors: {
  custom: {
    50: '#afa4e1',
    500: '#8a7fd3',
    950: '#000000',
  },
}
SCSS
$custom: #8a7fd3;
$custom-light: #afa4e1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7fd3",
  "rgb": {
    "r": 138,
    "g": 127,
    "b": 211
  },
  "hsl": {
    "h": 247.857,
    "s": 48.837,
    "l": 66.275
  },
  "oklch": {
    "l": 0.64158,
    "c": 0.12378,
    "h": 288.4
  },
  "luminance": 0.25285
}

Semantic roles & 50–950 ramp

primary
#8A7FD3
secondary
#E1E5C9
accent
#BC29A9
background
#FAFAFD
surface
#F5F4FB
border
#CFCED4
text
#110F15
muted
#807F83

Preview Lab

Preview with #8A7FD3

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

Preview Lab → · Contrast checker → · Palette generator →

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