#8A98EF#8A98EF

#8A98EF is a light, vivid blue. Relative luminance 0.341; OKLCH L 70.5% C 0.128 H 275.7°. Best body text is #000000 at 7.82:1 contrast (WCAG AA passes).

Color values

HEX#8A98EF
RGBrgb(138, 152, 239)
HSLhsl(232, 76%, 74%)
HSVhsv(232, 42%, 94%)
CMYKcmyk(42.3%, 36.4%, 0%, 6.3%)
CIE-LABlab(65.03, 16.73, -45.35)
CIE-LCHlch(65.03, 48.34, 290.25°)
OKLaboklab(70.48% 0.0127 -0.1275)
OKLCHoklch(70.48% 0.128 275.7)
XYZxyz(37.2847, 34.0899, 86.2601)
Luminance0.3409 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A98EF #EFE18A
analogous
#8ACBEF #8A98EF #AF8AEF
triadic
#8A98EF #EF8A98 #98EF8A
tetradic
#8A98EF #EF8ACB #EFE18A #8AEFAF
square
#8A98EF #EF8ACB #EFE18A #8AEFAF
split-complementary
#8A98EF #EFAF8A #CBEF8A
monochromatic
#1F39E0 #5469E8 #8A98EF #C0C7F6 #E4E7FB

Accessibility & contrast

On white

2.69
#8A98EF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.82
#8A98EF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #8A98EF
7.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A98EF#FFFFFF#000000##000000
##8A98EF1.002.697.827.82
#FFFFFF2.691.0021.0021.00
#0000007.8221.001.001.00
##0000007.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#79A2F2
Deuteranopia (green-blind)
#729AED
Tritanopia (blue-blind)
#69AAB8
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #8a98ef;
/* rgb */ color: rgb(138, 152, 239);
/* oklch */ color: oklch(70.5% 0.128 275.7);
Tailwind
colors: {
  custom: {
    50: '#b0b6f4',
    500: '#8a98ef',
    950: '#000000',
  },
}
SCSS
$custom: #8a98ef;
$custom-light: #b0b6f4;
$custom-dark: #000000;
JSON
{
  "hex": "#8a98ef",
  "rgb": {
    "r": 138,
    "g": 152,
    "b": 239
  },
  "hsl": {
    "h": 231.683,
    "s": 75.94,
    "l": 73.922
  },
  "oklch": {
    "l": 0.70476,
    "c": 0.12814,
    "h": 275.7
  },
  "luminance": 0.34092
}

Semantic roles & 50–950 ramp

primary
#8A98EF
secondary
#F3EFD8
accent
#BC0DD8
background
#FBFBFE
surface
#F6F6FD
border
#D0D0D5
text
#111117
muted
#808085

Preview Lab

Preview with #8A98EF

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

Preview Lab → · Contrast checker → · Palette generator →

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