#9798FA#9798FA

#9798FA is a light, vivid blue. Relative luminance 0.359; OKLCH L 72.0% C 0.141 H 281.8°. Best body text is #000000 at 8.19:1 contrast (WCAG AA passes).

Color values

HEX#9798FA
RGBrgb(151, 152, 250)
HSLhsl(239, 91%, 79%)
HSVhsv(239, 40%, 98%)
CMYKcmyk(39.6%, 39.2%, 0%, 2%)
CIE-LABlab(66.47, 23.05, -49.04)
CIE-LCHlch(66.47, 54.19, 295.17°)
OKLaboklab(71.98% 0.0289 -0.138)
OKLCHoklch(71.98% 0.141 281.8)
XYZxyz(41.2411, 35.9363, 95.1874)
Luminance0.3594 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9798FA #FAF997
analogous
#97C9FA #9798FA #C797FA
triadic
#9798FA #FA9798 #98FA97
tetradic
#9798FA #FA97C9 #FAF997 #97FAC7
square
#9798FA #FA97C9 #FAF997 #97FAC7
split-complementary
#9798FA #FAC797 #C9FA97
monochromatic
#2224F4 #5D5EF7 #9798FA #D1D2FD #E2E2FE

Accessibility & contrast

On white

2.56
#9798FA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.19
#9798FA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9798FA
8.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9798FA#FFFFFF#000000##000000
##9798FA1.002.568.198.19
#FFFFFF2.561.0021.0021.00
#0000008.1921.001.001.00
##0000008.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#76A5FE
Deuteranopia (green-blind)
#719EF8
Tritanopia (blue-blind)
#7AABBD
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #9798fa;
/* rgb */ color: rgb(151, 152, 250);
/* oklch */ color: oklch(72.0% 0.141 281.8);
Tailwind
colors: {
  custom: {
    50: '#b9b6fc',
    500: '#9798fa',
    950: '#000000',
  },
}
SCSS
$custom: #9798fa;
$custom-light: #b9b6fc;
$custom-dark: #000000;
JSON
{
  "hex": "#9798fa",
  "rgb": {
    "r": 151,
    "g": 152,
    "b": 250
  },
  "hsl": {
    "h": 239.394,
    "s": 90.826,
    "l": 78.627
  },
  "oklch": {
    "l": 0.7198,
    "c": 0.141,
    "h": 281.8
  },
  "luminance": 0.35938
}

Semantic roles & 50–950 ramp

primary
#9798FA
secondary
#F6F5D5
accent
#E300E6
background
#FBFBFF
surface
#F6F6FF
border
#D0D0D7
text
#121117
muted
#818085

Preview Lab

Preview with #9798FA

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

Preview Lab → · Contrast checker → · Palette generator →

#9798FA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva