#998EF2#998EF2

#998EF2 is a light, vivid blue. Relative luminance 0.325; OKLCH L 69.8% C 0.144 H 287.1°. Best body text is #000000 at 7.51:1 contrast (WCAG AA passes).

Color values

HEX#998EF2
RGBrgb(153, 142, 242)
HSLhsl(247, 79%, 75%)
HSVhsv(247, 41%, 95%)
CMYKcmyk(36.8%, 41.3%, 0%, 5.1%)
CIE-LABlab(63.78, 27.15, -48.91)
CIE-LCHlch(63.78, 55.93, 299.03°)
OKLaboklab(69.84% 0.0423 -0.1376)
OKLCHoklch(69.84% 0.144 287.1)
XYZxyz(38.8325, 32.5279, 88.2197)
Luminance0.3253 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#998EF2 #E7F28E
analogous
#8EB5F2 #998EF2 #CB8EF2
triadic
#998EF2 #F2998E #8EF299
tetradic
#998EF2 #F28EB5 #E7F28E #8EF2CB
square
#998EF2 #F28EB5 #E7F28E #8EF2CB
split-complementary
#998EF2 #F2CB8E #B5F28E
monochromatic
#3620E5 #6757EC #998EF2 #CBC5F8 #E6E4FC

Accessibility & contrast

On white

2.80
#998EF2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.51
#998EF2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #998EF2
7.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##998EF2#FFFFFF#000000##000000
##998EF21.002.807.517.51
#FFFFFF2.801.0021.0021.00
#0000007.5121.001.001.00
##0000007.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#6C9DF6
Deuteranopia (green-blind)
#6B98F0
Tritanopia (blue-blind)
#81A1B4
Achromatopsia (no color)
#9A9A9A

Design tokens & code

CSS
--color: #998ef2;
/* rgb */ color: rgb(153, 142, 242);
/* oklch */ color: oklch(69.8% 0.144 287.1);
Tailwind
colors: {
  custom: {
    50: '#baaff7',
    500: '#998ef2',
    950: '#000000',
  },
}
SCSS
$custom: #998ef2;
$custom-light: #baaff7;
$custom-dark: #000000;
JSON
{
  "hex": "#998ef2",
  "rgb": {
    "r": 153,
    "g": 142,
    "b": 242
  },
  "hsl": {
    "h": 246.6,
    "s": 79.365,
    "l": 75.294
  },
  "oklch": {
    "l": 0.69838,
    "c": 0.14394,
    "h": 287.1
  },
  "luminance": 0.32529
}

Semantic roles & 50–950 ramp

primary
#998EF2
secondary
#F1F4D7
accent
#DC0AC5
background
#FBFAFF
surface
#F6F4FF
border
#D0CED7
text
#121017
muted
#817F85

Preview Lab

Preview with #998EF2

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

Preview Lab → · Contrast checker → · Palette generator →

#998EF2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva