#8A98CF#8A98CF

#8A98CF is a light, moderate blue. Relative luminance 0.324; OKLCH L 68.9% C 0.083 H 273.1°. Best body text is #000000 at 7.47:1 contrast (WCAG AA passes).

Color values

HEX#8A98CF
RGBrgb(138, 152, 207)
HSLhsl(228, 42%, 68%)
HSVhsv(228, 33%, 81%)
CMYKcmyk(33.3%, 26.6%, 0%, 18.8%)
CIE-LABlab(63.64, 8.03, -29.81)
CIE-LCHlch(63.64, 30.87, 285.07°)
OKLaboklab(68.94% 0.0044 -0.0827)
OKLCHoklch(68.94% 0.083 273.1)
XYZxyz(32.9687, 32.3635, 63.5291)
Luminance0.3236 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A98CF #CFC18A
analogous
#8ABACF #8A98CF #9E8ACF
triadic
#8A98CF #CF8A98 #98CF8A
tetradic
#8A98CF #CF8ABA #CFC18A #8ACF9E
square
#8A98CF #CF8ABA #CFC18A #8ACF9E
split-complementary
#8A98CF #CF9E8A #BACF8A
monochromatic
#41549E #5F72BD #8A98CF #B5BEE1 #E1E4F3

Accessibility & contrast

On white

2.81
#8A98CF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.47
#8A98CF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #8A98CF
7.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A98CF#FFFFFF#000000##000000
##8A98CF1.002.817.477.47
#FFFFFF2.811.0021.0021.00
#0000007.4721.001.001.00
##0000007.4721.001.001.00

Color blindness preview

Protanopia (red-blind)
#879DD1
Deuteranopia (green-blind)
#8198CE
Tritanopia (blue-blind)
#77A3AB
Achromatopsia (no color)
#9A9A9A

Design tokens & code

CSS
--color: #8a98cf;
/* rgb */ color: rgb(138, 152, 207);
/* oklch */ color: oklch(68.9% 0.083 273.1);
Tailwind
colors: {
  custom: {
    50: '#aeb6de',
    500: '#8a98cf',
    950: '#000000',
  },
}
SCSS
$custom: #8a98cf;
$custom-light: #aeb6de;
$custom-dark: #000000;
JSON
{
  "hex": "#8a98cf",
  "rgb": {
    "r": 138,
    "g": 152,
    "b": 207
  },
  "hsl": {
    "h": 227.826,
    "s": 41.818,
    "l": 67.647
  },
  "oklch": {
    "l": 0.68942,
    "c": 0.08279,
    "h": 273.1
  },
  "luminance": 0.32365
}

Semantic roles & 50–950 ramp

primary
#8A98CF
secondary
#E5E1D0
accent
#9A31B5
background
#FAFBFD
surface
#F4F6FB
border
#CED0D4
text
#101115
muted
#7F8083

Preview Lab

Preview with #8A98CF

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

Preview Lab → · Contrast checker → · Palette generator →

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