#8A98E4#8A98E4

#8A98E4 is a light, moderate blue. Relative luminance 0.335; OKLCH L 69.9% C 0.113 H 275.1°. Best body text is #000000 at 7.69:1 contrast (WCAG AA passes).

Color values

HEX#8A98E4
RGBrgb(138, 152, 228)
HSLhsl(231, 63%, 72%)
HSVhsv(231, 39%, 89%)
CMYKcmyk(39.5%, 33.3%, 0%, 10.6%)
CIE-LABlab(64.53, 13.67, -40.08)
CIE-LCHlch(64.53, 42.34, 288.83°)
OKLaboklab(69.92% 0.0101 -0.1122)
OKLCHoklch(69.92% 0.113 275.1)
XYZxyz(35.7089, 33.4596, 77.9606)
Luminance0.3346 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A98E4 #E4D68A
analogous
#8AC5E4 #8A98E4 #A98AE4
triadic
#8A98E4 #E48A98 #98E48A
tetradic
#8A98E4 #E48AC5 #E4D68A #8AE4A9
square
#8A98E4 #E48AC5 #E4D68A #8AE4A9
split-complementary
#8A98E4 #E4A98A #C5E48A
monochromatic
#2E45C6 #586CD9 #8A98E4 #BCC4EF #E6E9F9

Accessibility & contrast

On white

2.73
#8A98E4 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.69
#8A98E4 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #8A98E4
7.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A98E4#FFFFFF#000000##000000
##8A98E41.002.737.697.69
#FFFFFF2.731.0021.0021.00
#0000007.6921.001.001.00
##0000007.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#7EA0E7
Deuteranopia (green-blind)
#7899E2
Tritanopia (blue-blind)
#6EA7B4
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #8a98e4;
/* rgb */ color: rgb(138, 152, 228);
/* oklch */ color: oklch(69.9% 0.113 275.1);
Tailwind
colors: {
  custom: {
    50: '#afb6ed',
    500: '#8a98e4',
    950: '#000000',
  },
}
SCSS
$custom: #8a98e4;
$custom-light: #afb6ed;
$custom-dark: #000000;
JSON
{
  "hex": "#8a98e4",
  "rgb": {
    "r": 138,
    "g": 152,
    "b": 228
  },
  "hsl": {
    "h": 230.667,
    "s": 62.5,
    "l": 71.765
  },
  "oklch": {
    "l": 0.69924,
    "c": 0.11267,
    "h": 275.1
  },
  "luminance": 0.33461
}

Semantic roles & 50–950 ramp

primary
#8A98E4
secondary
#F0EDD9
accent
#AF1BCA
background
#FBFBFE
surface
#F6F6FD
border
#D0D0D5
text
#111116
muted
#808084

Preview Lab

Preview with #8A98E4

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

Preview Lab → · Contrast checker → · Palette generator →

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