#8A98EB#8A98EB

#8A98EB is a light, vivid blue. Relative luminance 0.339; OKLCH L 70.3% C 0.123 H 275.5°. Best body text is #000000 at 7.77:1 contrast (WCAG AA passes).

Color values

HEX#8A98EB
RGBrgb(138, 152, 235)
HSLhsl(231, 71%, 73%)
HSVhsv(231, 41%, 92%)
CMYKcmyk(41.3%, 35.3%, 0%, 7.8%)
CIE-LABlab(64.85, 15.61, -43.44)
CIE-LCHlch(64.85, 46.16, 289.77°)
OKLaboklab(70.27% 0.0118 -0.122)
OKLCHoklch(70.27% 0.123 275.5)
XYZxyz(36.7004, 33.8562, 83.1823)
Luminance0.3386 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A98EB #EBDD8A
analogous
#8AC8EB #8A98EB #AC8AEB
triadic
#8A98EB #EB8A98 #98EB8A
tetradic
#8A98EB #EB8AC8 #EBDD8A #8AEBAC
square
#8A98EB #EB8AC8 #EBDD8A #8AEBAC
split-complementary
#8A98EB #EBAC8A #C8EB8A
monochromatic
#253ED6 #566AE2 #8A98EB #BEC6F4 #E5E8FB

Accessibility & contrast

On white

2.70
#8A98EB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.77
#8A98EB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #8A98EB
7.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A98EB#FFFFFF#000000##000000
##8A98EB1.002.707.777.77
#FFFFFF2.701.0021.0021.00
#0000007.7721.001.001.00
##0000007.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#7BA1EE
Deuteranopia (green-blind)
#749AE9
Tritanopia (blue-blind)
#6BA9B7
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #8a98eb;
/* rgb */ color: rgb(138, 152, 235);
/* oklch */ color: oklch(70.3% 0.123 275.5);
Tailwind
colors: {
  custom: {
    50: '#b0b6f2',
    500: '#8a98eb',
    950: '#000000',
  },
}
SCSS
$custom: #8a98eb;
$custom-light: #b0b6f2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a98eb",
  "rgb": {
    "r": 138,
    "g": 152,
    "b": 235
  },
  "hsl": {
    "h": 231.34,
    "s": 70.803,
    "l": 73.137
  },
  "oklch": {
    "l": 0.70272,
    "c": 0.12254,
    "h": 275.5
  },
  "luminance": 0.33858
}

Semantic roles & 50–950 ramp

primary
#8A98EB
secondary
#F2EED9
accent
#B713D3
background
#FBFBFE
surface
#F6F6FD
border
#D0D0D5
text
#111117
muted
#808085

Preview Lab

Preview with #8A98EB

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

Preview Lab → · Contrast checker → · Palette generator →

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