#8A98EC#8A98EC

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

Color values

HEX#8A98EC
RGBrgb(138, 152, 236)
HSLhsl(231, 72%, 73%)
HSVhsv(231, 42%, 93%)
CMYKcmyk(41.5%, 35.6%, 0%, 7.5%)
CIE-LABlab(64.89, 15.89, -43.92)
CIE-LCHlch(64.89, 46.70, 289.89°)
OKLaboklab(70.32% 0.012 -0.1234)
OKLCHoklch(70.32% 0.124 275.6)
XYZxyz(36.8452, 33.9141, 83.9453)
Luminance0.3392 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A98EC #ECDE8A
analogous
#8AC9EC #8A98EC #AD8AEC
triadic
#8A98EC #EC8A98 #98EC8A
tetradic
#8A98EC #EC8AC9 #ECDE8A #8AECAD
square
#8A98EC #EC8AC9 #ECDE8A #8AECAD
split-complementary
#8A98EC #ECAD8A #C9EC8A
monochromatic
#233DD8 #556AE3 #8A98EC #BFC6F5 #E5E8FB

Accessibility & contrast

On white

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

On black

7.78
#8A98EC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #8A98EC
7.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A98EC#FFFFFF#000000##000000
##8A98EC1.002.707.787.78
#FFFFFF2.701.0021.0021.00
#0000007.7821.001.001.00
##0000007.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#7BA2EF
Deuteranopia (green-blind)
#739AEA
Tritanopia (blue-blind)
#6AA9B7
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #8a98ec;
/* rgb */ color: rgb(138, 152, 236);
/* oklch */ color: oklch(70.3% 0.124 275.6);
Tailwind
colors: {
  custom: {
    50: '#b0b6f2',
    500: '#8a98ec',
    950: '#000000',
  },
}
SCSS
$custom: #8a98ec;
$custom-light: #b0b6f2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a98ec",
  "rgb": {
    "r": 138,
    "g": 152,
    "b": 236
  },
  "hsl": {
    "h": 231.429,
    "s": 72.059,
    "l": 73.333
  },
  "oklch": {
    "l": 0.70323,
    "c": 0.12394,
    "h": 275.6
  },
  "luminance": 0.33916
}

Semantic roles & 50–950 ramp

primary
#8A98EC
secondary
#F2EFD9
accent
#B811D4
background
#FBFBFE
surface
#F6F6FD
border
#D0D0D5
text
#111117
muted
#808085

Preview Lab

Preview with #8A98EC

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

Preview Lab → · Contrast checker → · Palette generator →

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