#8A7CD7#8A7CD7

#8A7CD7 is a light, vivid blue. Relative luminance 0.247; OKLCH L 63.8% C 0.134 H 289.1°. Best body text is #000000 at 5.95:1 contrast (WCAG AA passes).

Color values

HEX#8A7CD7
RGBrgb(138, 124, 215)
HSLhsl(249, 53%, 66%)
HSVhsv(249, 42%, 84%)
CMYKcmyk(35.8%, 42.3%, 0%, 15.7%)
CIE-LABlab(56.81, 26.43, -44.98)
CIE-LCHlch(56.81, 52.17, 300.44°)
OKLaboklab(63.81% 0.0438 -0.1265)
OKLCHoklch(63.81% 0.134 289.1)
XYZxyz(29.9513, 24.7241, 67.4710)
Luminance0.2472 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7CD7 #C9D77C
analogous
#7C9CD7 #8A7CD7 #B87CD7
triadic
#8A7CD7 #D78A7C #7CD78A
tetradic
#8A7CD7 #D77C9C #C9D77C #7CD7B8
square
#8A7CD7 #D77C9C #C9D77C #7CD7B8
split-complementary
#8A7CD7 #D7B87C #9CD77C
monochromatic
#4433A6 #604DC9 #8A7CD7 #B4ABE5 #DEDAF4

Accessibility & contrast

On white

3.53
#8A7CD7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.95
#8A7CD7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7CD7
5.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7CD7#FFFFFF#000000##000000
##8A7CD71.003.535.955.95
#FFFFFF3.531.0021.0021.00
#0000005.9521.001.001.00
##0000005.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#5E8ADA
Deuteranopia (green-blind)
#5E86D5
Tritanopia (blue-blind)
#768D9F
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #8a7cd7;
/* rgb */ color: rgb(138, 124, 215);
/* oklch */ color: oklch(63.8% 0.134 289.1);
Tailwind
colors: {
  custom: {
    50: '#afa2e4',
    500: '#8a7cd7',
    950: '#000000',
  },
}
SCSS
$custom: #8a7cd7;
$custom-light: #afa2e4;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7cd7",
  "rgb": {
    "r": 138,
    "g": 124,
    "b": 215
  },
  "hsl": {
    "h": 249.231,
    "s": 53.216,
    "l": 66.471
  },
  "oklch": {
    "l": 0.63808,
    "c": 0.13388,
    "h": 289.1
  },
  "luminance": 0.24725
}

Semantic roles & 50–950 ramp

primary
#8A7CD7
secondary
#E2E6C9
accent
#C125A9
background
#FBF9FE
surface
#F6F2FC
border
#D0CCD5
text
#110F15
muted
#807E84

Preview Lab

Preview with #8A7CD7

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

Preview Lab → · Contrast checker → · Palette generator →

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