#8A8FEF#8A8FEF

#8A8FEF is a light, vivid blue. Relative luminance 0.313; OKLCH L 68.7% C 0.140 H 279.8°. Best body text is #000000 at 7.26:1 contrast (WCAG AA passes).

Color values

HEX#8A8FEF
RGBrgb(138, 143, 239)
HSLhsl(237, 76%, 74%)
HSVhsv(237, 42%, 94%)
CMYKcmyk(42.3%, 40.2%, 0%, 6.3%)
CIE-LABlab(62.74, 21.95, -48.96)
CIE-LCHlch(62.74, 53.66, 294.15°)
OKLaboklab(68.72% 0.0238 -0.1381)
OKLCHoklch(68.72% 0.14 279.8)
XYZxyz(35.8791, 31.2786, 85.7915)
Luminance0.3128 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8FEF #EFEA8A
analogous
#8AC2EF #8A8FEF #B88AEF
triadic
#8A8FEF #EF8A8F #8FEF8A
tetradic
#8A8FEF #EF8AC2 #EFEA8A #8AEFB8
square
#8A8FEF #EF8AC2 #EFEA8A #8AEFB8
split-complementary
#8A8FEF #EFB88A #C2EF8A
monochromatic
#1F28E0 #545BE8 #8A8FEF #C0C3F6 #E4E5FB

Accessibility & contrast

On white

2.89
#8A8FEF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.26
#8A8FEF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #8A8FEF
7.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A8FEF#FFFFFF#000000##000000
##8A8FEF1.002.897.267.26
#FFFFFF2.891.0021.0021.00
#0000007.2621.001.001.00
##0000007.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#6C9CF3
Deuteranopia (green-blind)
#6694ED
Tritanopia (blue-blind)
#6AA2B3
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #8a8fef;
/* rgb */ color: rgb(138, 143, 239);
/* oklch */ color: oklch(68.7% 0.140 279.8);
Tailwind
colors: {
  custom: {
    50: '#b0aff4',
    500: '#8a8fef',
    950: '#000000',
  },
}
SCSS
$custom: #8a8fef;
$custom-light: #b0aff4;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8fef",
  "rgb": {
    "r": 138,
    "g": 143,
    "b": 239
  },
  "hsl": {
    "h": 237.03,
    "s": 75.94,
    "l": 73.922
  },
  "oklch": {
    "l": 0.68719,
    "c": 0.14011,
    "h": 279.8
  },
  "luminance": 0.3128
}

Semantic roles & 50–950 ramp

primary
#8A8FEF
secondary
#F3F2D8
accent
#CE0DD8
background
#FBFAFE
surface
#F6F4FD
border
#D0CED5
text
#111017
muted
#807F85

Preview Lab

Preview with #8A8FEF

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

Preview Lab → · Contrast checker → · Palette generator →

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