#8A98FE#8A98FE

#8A98FE is a light, vivid blue. Relative luminance 0.350; OKLCH L 71.3% C 0.149 H 276.0°. Best body text is #000000 at 8.00:1 contrast (WCAG AA passes).

Color values

HEX#8A98FE
RGBrgb(138, 152, 254)
HSLhsl(233, 98%, 77%)
HSVhsv(233, 46%, 100%)
CMYKcmyk(45.7%, 40.2%, 0%, 0.4%)
CIE-LABlab(65.76, 21.01, -52.41)
CIE-LCHlch(65.76, 56.47, 291.84°)
OKLaboklab(71.27% 0.0157 -0.1481)
OKLCHoklch(71.27% 0.149 276)
XYZxyz(39.5934, 35.0134, 98.4187)
Luminance0.3502 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A98FE #FEF08A
analogous
#8AD2FE #8A98FE #B68AFE
triadic
#8A98FE #FE8A98 #98FE8A
tetradic
#8A98FE #FE8AD2 #FEF08A #8AFEB6
square
#8A98FE #FE8AD2 #FEF08A #8AFEB6
split-complementary
#8A98FE #FEB68A #D2FE8A
monochromatic
#112DFD #4D63FD #8A98FE #C7CDFF #E1E4FF

Accessibility & contrast

On white

2.62
#8A98FE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.00
#8A98FE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #8A98FE
8.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A98FE#FFFFFF#000000##000000
##8A98FE1.002.628.008.00
#FFFFFF2.621.0021.0021.00
#0000008.0021.001.001.00
##0000008.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#71A5FF
Deuteranopia (green-blind)
#689BFC
Tritanopia (blue-blind)
#60ADBF
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #8a98fe;
/* rgb */ color: rgb(138, 152, 254);
/* oklch */ color: oklch(71.3% 0.149 276.0);
Tailwind
colors: {
  custom: {
    50: '#b1b6ff',
    500: '#8a98fe',
    950: '#000000',
  },
}
SCSS
$custom: #8a98fe;
$custom-light: #b1b6ff;
$custom-dark: #000000;
JSON
{
  "hex": "#8a98fe",
  "rgb": {
    "r": 138,
    "g": 152,
    "b": 254
  },
  "hsl": {
    "h": 232.759,
    "s": 98.305,
    "l": 76.863
  },
  "oklch": {
    "l": 0.7127,
    "c": 0.14893,
    "h": 276
  },
  "luminance": 0.35016
}

Semantic roles & 50–950 ramp

primary
#8A98FE
secondary
#F7F3D4
accent
#CA00E6
background
#FBFBFF
surface
#F6F6FF
border
#D0D0D7
text
#111118
muted
#808086

Preview Lab

Preview with #8A98FE

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

Preview Lab → · Contrast checker → · Palette generator →

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