#9798F9#9798F9

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

Color values

HEX#9798F9
RGBrgb(151, 152, 249)
HSLhsl(239, 89%, 78%)
HSVhsv(239, 39%, 98%)
CMYKcmyk(39.4%, 39%, 0%, 2.4%)
CIE-LABlab(66.42, 22.78, -48.57)
CIE-LCHlch(66.42, 53.65, 295.12°)
OKLaboklab(71.93% 0.0287 -0.1366)
OKLCHoklch(71.93% 0.14 281.8)
XYZxyz(41.0847, 35.8737, 94.3637)
Luminance0.3588 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9798F9 #F9F897
analogous
#97C9F9 #9798F9 #C797F9
triadic
#9798F9 #F99798 #98F997
tetradic
#9798F9 #F997C9 #F9F897 #97F9C7
square
#9798F9 #F997C9 #F9F897 #97F9C7
split-complementary
#9798F9 #F9C797 #C9F997
monochromatic
#2325F2 #5D5FF6 #9798F9 #D1D1FC #E2E2FD

Accessibility & contrast

On white

2.57
#9798F9 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.17
#9798F9 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9798F9
8.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9798F9#FFFFFF#000000##000000
##9798F91.002.578.178.17
#FFFFFF2.571.0021.0021.00
#0000008.1721.001.001.00
##0000008.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#77A5FD
Deuteranopia (green-blind)
#729EF7
Tritanopia (blue-blind)
#7AABBD
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #9798f9;
/* rgb */ color: rgb(151, 152, 249);
/* oklch */ color: oklch(71.9% 0.140 281.8);
Tailwind
colors: {
  custom: {
    50: '#b9b6fb',
    500: '#9798f9',
    950: '#000000',
  },
}
SCSS
$custom: #9798f9;
$custom-light: #b9b6fb;
$custom-dark: #000000;
JSON
{
  "hex": "#9798f9",
  "rgb": {
    "r": 151,
    "g": 152,
    "b": 249
  },
  "hsl": {
    "h": 239.388,
    "s": 89.091,
    "l": 78.431
  },
  "oklch": {
    "l": 0.71928,
    "c": 0.13962,
    "h": 281.8
  },
  "luminance": 0.35875
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #9798F9

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

Preview Lab → · Contrast checker → · Palette generator →

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