#8A7ECC#8A7ECC

#8A7ECC is a light, moderate blue. Relative luminance 0.247; OKLCH L 63.6% C 0.115 H 289.8°. Best body text is #000000 at 5.94:1 contrast (WCAG AA passes).

Color values

HEX#8A7ECC
RGBrgb(138, 126, 204)
HSLhsl(249, 43%, 65%)
HSVhsv(249, 38%, 80%)
CMYKcmyk(32.4%, 38.2%, 0%, 20%)
CIE-LABlab(56.77, 22.33, -38.84)
CIE-LCHlch(56.77, 44.80, 299.90°)
OKLaboklab(63.6% 0.039 -0.1086)
OKLCHoklch(63.6% 0.115 289.8)
XYZxyz(28.8383, 24.6840, 60.3601)
Luminance0.2469 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7ECC #C0CC7E
analogous
#7E99CC #8A7ECC #B17ECC
triadic
#8A7ECC #CC8A7E #7ECC8A
tetradic
#8A7ECC #CC7E99 #C0CC7E #7ECCB1
square
#8A7ECC #CC7E99 #C0CC7E #7ECCB1
split-complementary
#8A7ECC #CCB17E #99CC7E
monochromatic
#493B95 #6252BB #8A7ECC #B2AADD #DAD6EF

Accessibility & contrast

On white

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

On black

5.94
#8A7ECC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7ECC
5.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7ECC#FFFFFF#000000##000000
##8A7ECC1.003.545.945.94
#FFFFFF3.541.0021.0021.00
#0000005.9421.001.001.00
##0000005.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#678ACF
Deuteranopia (green-blind)
#6786CA
Tritanopia (blue-blind)
#7A8C9B
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #8a7ecc;
/* rgb */ color: rgb(138, 126, 204);
/* oklch */ color: oklch(63.6% 0.115 289.8);
Tailwind
colors: {
  custom: {
    50: '#aea3dc',
    500: '#8a7ecc',
    950: '#000000',
  },
}
SCSS
$custom: #8a7ecc;
$custom-light: #aea3dc;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7ecc",
  "rgb": {
    "r": 138,
    "g": 126,
    "b": 204
  },
  "hsl": {
    "h": 249.231,
    "s": 43.333,
    "l": 64.706
  },
  "oklch": {
    "l": 0.63602,
    "c": 0.11545,
    "h": 289.8
  },
  "luminance": 0.24685
}

Semantic roles & 50–950 ramp

primary
#8A7ECC
secondary
#DCE0C6
accent
#B62FA2
background
#FAFAFD
surface
#F5F3FB
border
#CFCDD4
text
#100F15
muted
#7F7F83

Preview Lab

Preview with #8A7ECC

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

Preview Lab → · Contrast checker → · Palette generator →

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