#8A98DF#8A98DF

#8A98DF is a light, moderate blue. Relative luminance 0.332; OKLCH L 69.7% C 0.106 H 274.8°. Best body text is #000000 at 7.64:1 contrast (WCAG AA passes).

Color values

HEX#8A98DF
RGBrgb(138, 152, 223)
HSLhsl(230, 57%, 71%)
HSVhsv(230, 38%, 87%)
CMYKcmyk(38.1%, 31.8%, 0%, 12.5%)
CIE-LABlab(64.31, 12.30, -37.66)
CIE-LCHlch(64.31, 39.61, 288.09°)
OKLaboklab(69.68% 0.0088 -0.1052)
OKLCHoklch(69.68% 0.106 274.8)
XYZxyz(35.0248, 33.1860, 74.3578)
Luminance0.3319 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A98DF #DFD18A
analogous
#8AC2DF #8A98DF #A68ADF
triadic
#8A98DF #DF8A98 #98DF8A
tetradic
#8A98DF #DF8AC2 #DFD18A #8ADFA6
square
#8A98DF #DF8AC2 #DFD18A #8ADFA6
split-complementary
#8A98DF #DFA68A #C2DF8A
monochromatic
#334ABB #5A6ED2 #8A98DF #BAC2EC #E7EAF8

Accessibility & contrast

On white

2.75
#8A98DF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.64
#8A98DF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #8A98DF
7.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A98DF#FFFFFF#000000##000000
##8A98DF1.002.757.647.64
#FFFFFF2.751.0021.0021.00
#0000007.6421.001.001.00
##0000007.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#81A0E2
Deuteranopia (green-blind)
#7A99DD
Tritanopia (blue-blind)
#70A6B2
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #8a98df;
/* rgb */ color: rgb(138, 152, 223);
/* oklch */ color: oklch(69.7% 0.106 274.8);
Tailwind
colors: {
  custom: {
    50: '#afb6e9',
    500: '#8a98df',
    950: '#000000',
  },
}
SCSS
$custom: #8a98df;
$custom-light: #afb6e9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a98df",
  "rgb": {
    "r": 138,
    "g": 152,
    "b": 223
  },
  "hsl": {
    "h": 230.118,
    "s": 57.047,
    "l": 70.784
  },
  "oklch": {
    "l": 0.69682,
    "c": 0.1056,
    "h": 274.8
  },
  "luminance": 0.33187
}

Semantic roles & 50–950 ramp

primary
#8A98DF
secondary
#EEEAD7
accent
#AA21C5
background
#FBFBFE
surface
#F6F6FD
border
#D0D0D5
text
#111116
muted
#808084

Preview Lab

Preview with #8A98DF

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

Preview Lab → · Contrast checker → · Palette generator →

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