#8A7DD5#8A7DD5

#8A7DD5 is a light, vivid blue. Relative luminance 0.249; OKLCH L 63.9% C 0.130 H 289.0°. Best body text is #000000 at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#8A7DD5
RGBrgb(138, 125, 213)
HSLhsl(249, 51%, 66%)
HSVhsv(249, 41%, 84%)
CMYKcmyk(35.2%, 41.3%, 0%, 16.5%)
CIE-LABlab(56.95, 25.31, -43.63)
CIE-LCHlch(56.95, 50.43, 300.12°)
OKLaboklab(63.89% 0.0421 -0.1226)
OKLCHoklch(63.89% 0.13 289)
XYZxyz(29.8219, 24.8738, 66.1678)
Luminance0.2487 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7DD5 #C8D57D
analogous
#7D9CD5 #8A7DD5 #B67DD5
triadic
#8A7DD5 #D58A7D #7DD58A
tetradic
#8A7DD5 #D57D9C #C8D57D #7DD5B6
square
#8A7DD5 #D57D9C #C8D57D #7DD5B6
split-complementary
#8A7DD5 #D5B67D #9CD57D
monochromatic
#4535A3 #604FC6 #8A7DD5 #B4ABE4 #DDDAF3

Accessibility & contrast

On white

3.51
#8A7DD5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.98
#8A7DD5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7DD5
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7DD5#FFFFFF#000000##000000
##8A7DD51.003.515.985.98
#FFFFFF3.511.0021.0021.00
#0000005.9821.001.001.00
##0000005.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#608BD8
Deuteranopia (green-blind)
#6087D3
Tritanopia (blue-blind)
#778E9F
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #8a7dd5;
/* rgb */ color: rgb(138, 125, 213);
/* oklch */ color: oklch(63.9% 0.130 289.0);
Tailwind
colors: {
  custom: {
    50: '#afa2e2',
    500: '#8a7dd5',
    950: '#000000',
  },
}
SCSS
$custom: #8a7dd5;
$custom-light: #afa2e2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7dd5",
  "rgb": {
    "r": 138,
    "g": 125,
    "b": 213
  },
  "hsl": {
    "h": 248.864,
    "s": 51.163,
    "l": 66.275
  },
  "oklch": {
    "l": 0.63887,
    "c": 0.1296,
    "h": 289
  },
  "luminance": 0.24875
}

Semantic roles & 50–950 ramp

primary
#8A7DD5
secondary
#E1E5C9
accent
#BF27A8
background
#FBFAFD
surface
#F6F3FB
border
#D0CDD4
text
#110F15
muted
#807F83

Preview Lab

Preview with #8A7DD5

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

Preview Lab → · Contrast checker → · Palette generator →

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