#8A8AFA#8A8AFA

#8A8AFA is a light, vivid blue. Relative luminance 0.305; OKLCH L 68.4% C 0.162 H 281.2°. Best body text is #000000 at 7.10:1 contrast (WCAG AA passes).

Color values

HEX#8A8AFA
RGBrgb(138, 138, 250)
HSLhsl(240, 92%, 76%)
HSVhsv(240, 45%, 98%)
CMYKcmyk(44.8%, 44.8%, 0%, 2%)
CIE-LABlab(62.07, 27.99, -56.09)
CIE-LCHlch(62.07, 62.69, 296.53°)
OKLaboklab(68.39% 0.0316 -0.1589)
OKLCHoklch(68.39% 0.162 281.2)
XYZxyz(36.8199, 30.4806, 94.3672)
Luminance0.3048 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8AFA #FAFA8A
analogous
#8AC2FA #8A8AFA #C28AFA
triadic
#8A8AFA #FA8A8A #8AFA8A
tetradic
#8A8AFA #FA8AC2 #FAFA8A #8AFAC2
square
#8A8AFA #FA8AC2 #FAFA8A #8AFAC2
split-complementary
#8A8AFA #FAC28A #C2FA8A
monochromatic
#1515F5 #4F4FF7 #8A8AFA #C5C5FD #E2E2FE

Accessibility & contrast

On white

2.96
#8A8AFA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.10
#8A8AFA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #8A8AFA
7.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A8AFA#FFFFFF#000000##000000
##8A8AFA1.002.967.107.10
#FFFFFF2.961.0021.0021.00
#0000007.1021.001.001.00
##0000007.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#5D9AFE
Deuteranopia (green-blind)
#5692F7
Tritanopia (blue-blind)
#64A1B6
Achromatopsia (no color)
#969696

Design tokens & code

CSS
--color: #8a8afa;
/* rgb */ color: rgb(138, 138, 250);
/* oklch */ color: oklch(68.4% 0.162 281.2);
Tailwind
colors: {
  custom: {
    50: '#b1acfc',
    500: '#8a8afa',
    950: '#000000',
  },
}
SCSS
$custom: #8a8afa;
$custom-light: #b1acfc;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8afa",
  "rgb": {
    "r": 138,
    "g": 138,
    "b": 250
  },
  "hsl": {
    "h": 240,
    "s": 91.803,
    "l": 76.078
  },
  "oklch": {
    "l": 0.68389,
    "c": 0.16204,
    "h": 281.2
  },
  "luminance": 0.30482
}

Semantic roles & 50–950 ramp

primary
#8A8AFA
secondary
#F6F6D5
accent
#E600E5
background
#FBFAFF
surface
#F6F4FF
border
#D0CED7
text
#111017
muted
#807F85

Preview Lab

Preview with #8A8AFA

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

Preview Lab → · Contrast checker → · Palette generator →

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