#8A7DD2#8A7DD2

#8A7DD2 is a light, vivid blue. Relative luminance 0.247; OKLCH L 63.7% C 0.125 H 289.4°. Best body text is #000000 at 5.94:1 contrast (WCAG AA passes).

Color values

HEX#8A7DD2
RGBrgb(138, 125, 210)
HSLhsl(249, 49%, 66%)
HSVhsv(249, 40%, 82%)
CMYKcmyk(34.3%, 40.5%, 0%, 17.6%)
CIE-LABlab(56.80, 24.51, -42.17)
CIE-LCHlch(56.80, 48.77, 300.16°)
OKLaboklab(63.73% 0.0416 -0.1183)
OKLCHoklch(63.73% 0.125 289.4)
XYZxyz(29.4446, 24.7229, 64.1809)
Luminance0.2472 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7DD2 #C5D27D
analogous
#7D9AD2 #8A7DD2 #B47DD2
triadic
#8A7DD2 #D28A7D #7DD28A
tetradic
#8A7DD2 #D27D9A #C5D27D #7DD2B4
square
#8A7DD2 #D27D9A #C5D27D #7DD2B4
split-complementary
#8A7DD2 #D2B47D #9AD27D
monochromatic
#46379E #6150C2 #8A7DD2 #B3AAE2 #DCD8F1

Accessibility & contrast

On white

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

On black

5.94
#8A7DD2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7DD2
5.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7DD2#FFFFFF#000000##000000
##8A7DD21.003.535.945.94
#FFFFFF3.531.0021.0021.00
#0000005.9421.001.001.00
##0000005.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#628AD5
Deuteranopia (green-blind)
#6286D0
Tritanopia (blue-blind)
#788D9D
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #8a7dd2;
/* rgb */ color: rgb(138, 125, 210);
/* oklch */ color: oklch(63.7% 0.125 289.4);
Tailwind
colors: {
  custom: {
    50: '#afa2e0',
    500: '#8a7dd2',
    950: '#000000',
  },
}
SCSS
$custom: #8a7dd2;
$custom-light: #afa2e0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7dd2",
  "rgb": {
    "r": 138,
    "g": 125,
    "b": 210
  },
  "hsl": {
    "h": 249.176,
    "s": 48.571,
    "l": 65.686
  },
  "oklch": {
    "l": 0.63726,
    "c": 0.12541,
    "h": 289.4
  },
  "luminance": 0.24724
}

Semantic roles & 50–950 ramp

primary
#8A7DD2
secondary
#DFE4C7
accent
#BC2AA5
background
#FAFAFD
surface
#F5F3FB
border
#CFCDD4
text
#110F15
muted
#807F83

Preview Lab

Preview with #8A7DD2

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

Preview Lab → · Contrast checker → · Palette generator →

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