#8A9FEC#8A9FEC

#8A9FEC is a light, moderate blue. Relative luminance 0.363; OKLCH L 71.7% C 0.115 H 271.6°. Best body text is #000000 at 8.25:1 contrast (WCAG AA passes).

Color values

HEX#8A9FEC
RGBrgb(138, 159, 236)
HSLhsl(227, 72%, 73%)
HSVhsv(227, 42%, 93%)
CMYKcmyk(41.5%, 32.6%, 0%, 7.5%)
CIE-LABlab(66.71, 11.87, -41.06)
CIE-LCHlch(66.71, 42.74, 286.12°)
OKLaboklab(71.73% 0.0033 -0.1151)
OKLCHoklch(71.73% 0.115 271.6)
XYZxyz(38.0151, 36.2538, 84.3352)
Luminance0.3626 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A9FEC #ECD78A
analogous
#8AD0EC #8A9FEC #A68AEC
triadic
#8A9FEC #EC8A9F #9FEC8A
tetradic
#8A9FEC #EC8AD0 #ECD78A #8AECA6
square
#8A9FEC #EC8AD0 #ECD78A #8AECA6
split-complementary
#8A9FEC #ECA68A #D0EC8A
monochromatic
#234AD8 #5574E3 #8A9FEC #BFCAF5 #E5E9FB

Accessibility & contrast

On white

2.55
#8A9FEC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.25
#8A9FEC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #8A9FEC
8.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A9FEC#FFFFFF#000000##000000
##8A9FEC1.002.558.258.25
#FFFFFF2.551.0021.0021.00
#0000008.2521.001.001.00
##0000008.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#84A7EF
Deuteranopia (green-blind)
#7C9EEA
Tritanopia (blue-blind)
#69AFBB
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #8a9fec;
/* rgb */ color: rgb(138, 159, 236);
/* oklch */ color: oklch(71.7% 0.115 271.6);
Tailwind
colors: {
  custom: {
    50: '#b0bbf2',
    500: '#8a9fec',
    950: '#000000',
  },
}
SCSS
$custom: #8a9fec;
$custom-light: #b0bbf2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a9fec",
  "rgb": {
    "r": 138,
    "g": 159,
    "b": 236
  },
  "hsl": {
    "h": 227.143,
    "s": 72.059,
    "l": 73.333
  },
  "oklch": {
    "l": 0.71727,
    "c": 0.11512,
    "h": 271.6
  },
  "luminance": 0.36256
}

Semantic roles & 50–950 ramp

primary
#8A9FEC
secondary
#F2EDD9
accent
#AA11D4
background
#FBFBFE
surface
#F6F6FD
border
#D0D0D5
text
#111117
muted
#808085

Preview Lab

Preview with #8A9FEC

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

Preview Lab → · Contrast checker → · Palette generator →

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