#8A98DC#8A98DC

#8A98DC is a light, moderate blue. Relative luminance 0.330; OKLCH L 69.5% C 0.101 H 274.6°. Best body text is #000000 at 7.61:1 contrast (WCAG AA passes).

Color values

HEX#8A98DC
RGBrgb(138, 152, 220)
HSLhsl(230, 54%, 70%)
HSVhsv(230, 37%, 86%)
CMYKcmyk(37.3%, 30.9%, 0%, 13.7%)
CIE-LABlab(64.18, 11.48, -36.20)
CIE-LCHlch(64.18, 37.97, 287.60°)
OKLaboklab(69.54% 0.0081 -0.101)
OKLCHoklch(69.54% 0.101 274.6)
XYZxyz(34.6239, 33.0256, 72.2465)
Luminance0.3303 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A98DC #DCCE8A
analogous
#8AC1DC #8A98DC #A58ADC
triadic
#8A98DC #DC8A98 #98DC8A
tetradic
#8A98DC #DC8AC1 #DCCE8A #8ADCA5
square
#8A98DC #DC8AC1 #DCCE8A #8ADCA5
split-complementary
#8A98DC #DCA58A #C1DC8A
monochromatic
#364CB5 #5B6FCE #8A98DC #B9C1EA #E7EAF8

Accessibility & contrast

On white

2.76
#8A98DC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.61
#8A98DC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #8A98DC
7.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A98DC#FFFFFF#000000##000000
##8A98DC1.002.767.617.61
#FFFFFF2.761.0021.0021.00
#0000007.6121.001.001.00
##0000007.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#829FDF
Deuteranopia (green-blind)
#7C99DA
Tritanopia (blue-blind)
#72A5B0
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #8a98dc;
/* rgb */ color: rgb(138, 152, 220);
/* oklch */ color: oklch(69.5% 0.101 274.6);
Tailwind
colors: {
  custom: {
    50: '#afb6e7',
    500: '#8a98dc',
    950: '#000000',
  },
}
SCSS
$custom: #8a98dc;
$custom-light: #afb6e7;
$custom-dark: #000000;
JSON
{
  "hex": "#8a98dc",
  "rgb": {
    "r": 138,
    "g": 152,
    "b": 220
  },
  "hsl": {
    "h": 229.756,
    "s": 53.947,
    "l": 70.196
  },
  "oklch": {
    "l": 0.69539,
    "c": 0.10134,
    "h": 274.6
  },
  "luminance": 0.33027
}

Semantic roles & 50–950 ramp

primary
#8A98DC
secondary
#ECE8D6
accent
#A724C1
background
#FAFBFE
surface
#F5F6FC
border
#CFD0D5
text
#111116
muted
#808084

Preview Lab

Preview with #8A98DC

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

Preview Lab → · Contrast checker → · Palette generator →

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