#8A7CD5#8A7CD5

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

Color values

HEX#8A7CD5
RGBrgb(138, 124, 213)
HSLhsl(249, 51%, 66%)
HSVhsv(249, 42%, 84%)
CMYKcmyk(35.2%, 41.8%, 0%, 16.5%)
CIE-LABlab(56.71, 25.89, -44.02)
CIE-LCHlch(56.71, 51.07, 300.47°)
OKLaboklab(63.7% 0.0435 -0.1237)
OKLCHoklch(63.7% 0.131 289.4)
XYZxyz(29.6959, 24.6219, 66.1258)
Luminance0.2462 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7CD5 #C7D57C
analogous
#7C9AD5 #8A7CD5 #B67CD5
triadic
#8A7CD5 #D58A7C #7CD58A
tetradic
#8A7CD5 #D57C9A #C7D57C #7CD5B6
square
#8A7CD5 #D57C9A #C7D57C #7CD5B6
split-complementary
#8A7CD5 #D5B67C #9AD57C
monochromatic
#4534A2 #614EC6 #8A7CD5 #B3AAE4 #DDD9F3

Accessibility & contrast

On white

3.54
#8A7CD5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.92
#8A7CD5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7CD5
5.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7CD5#FFFFFF#000000##000000
##8A7CD51.003.545.925.92
#FFFFFF3.541.0021.0021.00
#0000005.9221.001.001.00
##0000005.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#5F8AD8
Deuteranopia (green-blind)
#5F86D3
Tritanopia (blue-blind)
#778D9E
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #8a7cd5;
/* rgb */ color: rgb(138, 124, 213);
/* oklch */ color: oklch(63.7% 0.131 289.4);
Tailwind
colors: {
  custom: {
    50: '#afa2e2',
    500: '#8a7cd5',
    950: '#000000',
  },
}
SCSS
$custom: #8a7cd5;
$custom-light: #afa2e2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7cd5",
  "rgb": {
    "r": 138,
    "g": 124,
    "b": 213
  },
  "hsl": {
    "h": 249.438,
    "s": 51.445,
    "l": 66.078
  },
  "oklch": {
    "l": 0.63699,
    "c": 0.13111,
    "h": 289.4
  },
  "luminance": 0.24623
}

Semantic roles & 50–950 ramp

primary
#8A7CD5
secondary
#E0E5C8
accent
#BF27A7
background
#FBF9FD
surface
#F6F2FB
border
#D0CCD4
text
#110F15
muted
#807E83

Preview Lab

Preview with #8A7CD5

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

Preview Lab → · Contrast checker → · Palette generator →

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