#8A7DD4#8A7DD4

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

Color values

HEX#8A7DD4
RGBrgb(138, 125, 212)
HSLhsl(249, 50%, 66%)
HSVhsv(249, 41%, 83%)
CMYKcmyk(34.9%, 41%, 0%, 16.9%)
CIE-LABlab(56.90, 25.04, -43.14)
CIE-LCHlch(56.90, 49.88, 300.13°)
OKLaboklab(63.83% 0.0419 -0.1211)
OKLCHoklch(63.83% 0.128 289.1)
XYZxyz(29.6953, 24.8232, 65.5014)
Luminance0.2482 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7DD4 #C7D47D
analogous
#7D9BD4 #8A7DD4 #B57DD4
triadic
#8A7DD4 #D48A7D #7DD48A
tetradic
#8A7DD4 #D47D9B #C7D47D #7DD4B5
square
#8A7DD4 #D47D9B #C7D47D #7DD4B5
split-complementary
#8A7DD4 #D4B57D #9BD47D
monochromatic
#4535A1 #614FC5 #8A7DD4 #B3ABE3 #DDD9F2

Accessibility & contrast

On white

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

On black

5.96
#8A7DD4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7DD4
5.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7DD4#FFFFFF#000000##000000
##8A7DD41.003.525.965.96
#FFFFFF3.521.0021.0021.00
#0000005.9621.001.001.00
##0000005.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#618AD7
Deuteranopia (green-blind)
#6186D2
Tritanopia (blue-blind)
#778D9E
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #8a7dd4;
/* rgb */ color: rgb(138, 125, 212);
/* oklch */ color: oklch(63.8% 0.128 289.1);
Tailwind
colors: {
  custom: {
    50: '#afa2e1',
    500: '#8a7dd4',
    950: '#000000',
  },
}
SCSS
$custom: #8a7dd4;
$custom-light: #afa2e1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7dd4",
  "rgb": {
    "r": 138,
    "g": 125,
    "b": 212
  },
  "hsl": {
    "h": 248.966,
    "s": 50.289,
    "l": 66.078
  },
  "oklch": {
    "l": 0.63833,
    "c": 0.1282,
    "h": 289.1
  },
  "luminance": 0.24824
}

Semantic roles & 50–950 ramp

primary
#8A7DD4
secondary
#E0E5C8
accent
#BE28A7
background
#FAFAFD
surface
#F5F3FB
border
#CFCDD4
text
#110F15
muted
#807F83

Preview Lab

Preview with #8A7DD4

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

Preview Lab → · Contrast checker → · Palette generator →

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