#8A7DD3#8A7DD3

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

Color values

HEX#8A7DD3
RGBrgb(138, 125, 211)
HSLhsl(249, 49%, 66%)
HSVhsv(249, 41%, 83%)
CMYKcmyk(34.6%, 40.8%, 0%, 17.3%)
CIE-LABlab(56.85, 24.77, -42.65)
CIE-LCHlch(56.85, 49.33, 300.15°)
OKLaboklab(63.78% 0.0418 -0.1197)
OKLCHoklch(63.78% 0.127 289.2)
XYZxyz(29.5696, 24.7729, 64.8391)
Luminance0.2477 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7DD3 #C6D37D
analogous
#7D9BD3 #8A7DD3 #B57DD3
triadic
#8A7DD3 #D38A7D #7DD38A
tetradic
#8A7DD3 #D37D9B #C6D37D #7DD3B5
square
#8A7DD3 #D37D9B #C6D37D #7DD3B5
split-complementary
#8A7DD3 #D3B57D #9BD37D
monochromatic
#4636A0 #614FC4 #8A7DD3 #B3ABE2 #DCD8F2

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A7DD3#FFFFFF#000000##000000
##8A7DD31.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)
#628AD6
Deuteranopia (green-blind)
#6286D1
Tritanopia (blue-blind)
#788D9E
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #8a7dd3;
/* rgb */ color: rgb(138, 125, 211);
/* oklch */ color: oklch(63.8% 0.127 289.2);
Tailwind
colors: {
  custom: {
    50: '#afa2e1',
    500: '#8a7dd3',
    950: '#000000',
  },
}
SCSS
$custom: #8a7dd3;
$custom-light: #afa2e1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7dd3",
  "rgb": {
    "r": 138,
    "g": 125,
    "b": 211
  },
  "hsl": {
    "h": 249.07,
    "s": 49.425,
    "l": 65.882
  },
  "oklch": {
    "l": 0.63779,
    "c": 0.1268,
    "h": 289.2
  },
  "luminance": 0.24774
}

Semantic roles & 50–950 ramp

primary
#8A7DD3
secondary
#E0E4C8
accent
#BD29A6
background
#FAFAFD
surface
#F5F3FB
border
#CFCDD4
text
#110F15
muted
#807F83

Preview Lab

Preview with #8A7DD3

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

Preview Lab → · Contrast checker → · Palette generator →

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