#8A7ED4#8A7ED4

#8A7ED4 is a light, vivid blue. Relative luminance 0.251; OKLCH L 64.0% C 0.127 H 288.7°. Best body text is #000000 at 6.02:1 contrast (WCAG AA passes).

Color values

HEX#8A7ED4
RGBrgb(138, 126, 212)
HSLhsl(248, 50%, 66%)
HSVhsv(248, 41%, 83%)
CMYKcmyk(34.9%, 40.6%, 0%, 16.9%)
CIE-LABlab(57.15, 24.45, -42.75)
CIE-LCHlch(57.15, 49.25, 299.77°)
OKLaboklab(64.02% 0.0406 -0.12)
OKLCHoklch(64.02% 0.127 288.7)
XYZxyz(29.8226, 25.0777, 65.5438)
Luminance0.2508 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7ED4 #C8D47E
analogous
#7E9DD4 #8A7ED4 #B57ED4
triadic
#8A7ED4 #D48A7E #7ED48A
tetradic
#8A7ED4 #D47E9D #C8D47E #7ED4B5
square
#8A7ED4 #D47E9D #C8D47E #7ED4B5
split-complementary
#8A7ED4 #D4B57E #9DD47E
monochromatic
#4536A2 #6050C5 #8A7ED4 #B4ACE3 #DDDAF3

Accessibility & contrast

On white

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

On black

6.02
#8A7ED4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7ED4
6.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7ED4#FFFFFF#000000##000000
##8A7ED41.003.496.026.02
#FFFFFF3.491.0021.0021.00
#0000006.0221.001.001.00
##0000006.0221.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8a7ed4;
/* rgb */ color: rgb(138, 126, 212);
/* oklch */ color: oklch(64.0% 0.127 288.7);
Tailwind
colors: {
  custom: {
    50: '#afa3e1',
    500: '#8a7ed4',
    950: '#000000',
  },
}
SCSS
$custom: #8a7ed4;
$custom-light: #afa3e1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7ed4",
  "rgb": {
    "r": 138,
    "g": 126,
    "b": 212
  },
  "hsl": {
    "h": 248.372,
    "s": 50,
    "l": 66.275
  },
  "oklch": {
    "l": 0.64022,
    "c": 0.12669,
    "h": 288.7
  },
  "luminance": 0.25078
}

Semantic roles & 50–950 ramp

primary
#8A7ED4
secondary
#E1E5C9
accent
#BD28A9
background
#FAFAFD
surface
#F5F3FB
border
#CFCDD4
text
#110F15
muted
#807F83

Preview Lab

Preview with #8A7ED4

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

Preview Lab → · Contrast checker → · Palette generator →

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