#8A7CD9#8A7CD9

#8A7CD9 is a light, vivid blue. Relative luminance 0.248; OKLCH L 63.9% C 0.137 H 288.8°. Best body text is #000000 at 5.97:1 contrast (WCAG AA passes).

Color values

HEX#8A7CD9
RGBrgb(138, 124, 217)
HSLhsl(249, 55%, 67%)
HSVhsv(249, 43%, 85%)
CMYKcmyk(36.4%, 42.9%, 0%, 14.9%)
CIE-LABlab(56.91, 26.97, -45.95)
CIE-LCHlch(56.91, 53.28, 300.41°)
OKLaboklab(63.92% 0.0441 -0.1293)
OKLCHoklch(63.92% 0.137 288.8)
XYZxyz(30.2099, 24.8275, 68.8327)
Luminance0.2483 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7CD9 #CBD97C
analogous
#7C9DD9 #8A7CD9 #B97CD9
triadic
#8A7CD9 #D98A7C #7CD98A
tetradic
#8A7CD9 #D97C9D #CBD97C #7CD9B9
square
#8A7CD9 #D97C9D #CBD97C #7CD9B9
split-complementary
#8A7CD9 #D9B97C #9DD97C
monochromatic
#4331A9 #604DCB #8A7CD9 #B4ABE7 #DFDBF5

Accessibility & contrast

On white

3.52
#8A7CD9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.97
#8A7CD9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7CD9
5.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7CD9#FFFFFF#000000##000000
##8A7CD91.003.525.975.97
#FFFFFF3.521.0021.0021.00
#0000005.9721.001.001.00
##0000005.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#5D8BDC
Deuteranopia (green-blind)
#5D86D7
Tritanopia (blue-blind)
#768EA0
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #8a7cd9;
/* rgb */ color: rgb(138, 124, 217);
/* oklch */ color: oklch(63.9% 0.137 288.8);
Tailwind
colors: {
  custom: {
    50: '#afa2e5',
    500: '#8a7cd9',
    950: '#000000',
  },
}
SCSS
$custom: #8a7cd9;
$custom-light: #afa2e5;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7cd9",
  "rgb": {
    "r": 138,
    "g": 124,
    "b": 217
  },
  "hsl": {
    "h": 249.032,
    "s": 55.03,
    "l": 66.863
  },
  "oklch": {
    "l": 0.63918,
    "c": 0.13665,
    "h": 288.8
  },
  "luminance": 0.24828
}

Semantic roles & 50–950 ramp

primary
#8A7CD9
secondary
#E3E7CA
accent
#C323AB
background
#FBF9FE
surface
#F6F2FC
border
#D0CCD5
text
#110F16
muted
#807E84

Preview Lab

Preview with #8A7CD9

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

Preview Lab → · Contrast checker → · Palette generator →

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