#8A7ED5#8A7ED5

#8A7ED5 is a light, vivid blue. Relative luminance 0.251; OKLCH L 64.1% C 0.128 H 288.6°. Best body text is #000000 at 6.03:1 contrast (WCAG AA passes).

Color values

HEX#8A7ED5
RGBrgb(138, 126, 213)
HSLhsl(248, 51%, 66%)
HSVhsv(248, 41%, 84%)
CMYKcmyk(35.2%, 40.8%, 0%, 16.5%)
CIE-LABlab(57.20, 24.72, -43.23)
CIE-LCHlch(57.20, 49.80, 299.76°)
OKLaboklab(64.08% 0.0408 -0.1214)
OKLCHoklch(64.08% 0.128 288.6)
XYZxyz(29.9491, 25.1283, 66.2102)
Luminance0.2513 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7ED5 #C9D57E
analogous
#7E9ED5 #8A7ED5 #B67ED5
triadic
#8A7ED5 #D58A7E #7ED58A
tetradic
#8A7ED5 #D57E9E #C9D57E #7ED5B6
square
#8A7ED5 #D57E9E #C9D57E #7ED5B6
split-complementary
#8A7ED5 #D5B67E #9ED57E
monochromatic
#4435A3 #6050C6 #8A7ED5 #B4ACE4 #DEDAF3

Accessibility & contrast

On white

3.49
#8A7ED5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.03
#8A7ED5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7ED5
6.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7ED5#FFFFFF#000000##000000
##8A7ED51.003.496.036.03
#FFFFFF3.491.0021.0021.00
#0000006.0321.001.001.00
##0000006.0321.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8a7ed5;
/* rgb */ color: rgb(138, 126, 213);
/* oklch */ color: oklch(64.1% 0.128 288.6);
Tailwind
colors: {
  custom: {
    50: '#afa3e2',
    500: '#8a7ed5',
    950: '#000000',
  },
}
SCSS
$custom: #8a7ed5;
$custom-light: #afa3e2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7ed5",
  "rgb": {
    "r": 138,
    "g": 126,
    "b": 213
  },
  "hsl": {
    "h": 248.276,
    "s": 50.877,
    "l": 66.471
  },
  "oklch": {
    "l": 0.64075,
    "c": 0.12809,
    "h": 288.6
  },
  "luminance": 0.25129
}

Semantic roles & 50–950 ramp

primary
#8A7ED5
secondary
#E2E6C9
accent
#BE27A9
background
#FBFAFD
surface
#F6F3FB
border
#D0CDD4
text
#110F15
muted
#807F83

Preview Lab

Preview with #8A7ED5

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

Preview Lab → · Contrast checker → · Palette generator →

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