#9798EC#9798EC

#9798EC is a light, vivid blue. Relative luminance 0.351; OKLCH L 71.3% C 0.122 H 282.3°. Best body text is #000000 at 8.02:1 contrast (WCAG AA passes).

Color values

HEX#9798EC
RGBrgb(151, 152, 236)
HSLhsl(239, 69%, 76%)
HSVhsv(239, 36%, 93%)
CMYKcmyk(36%, 35.6%, 0%, 7.5%)
CIE-LABlab(65.82, 19.28, -42.40)
CIE-LCHlch(65.82, 46.58, 294.45°)
OKLaboklab(71.27% 0.026 -0.1187)
OKLCHoklch(71.27% 0.122 282.3)
XYZxyz(39.1268, 35.0906, 84.0522)
Luminance0.3509 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9798EC #ECEB97
analogous
#97C2EC #9798EC #C097EC
triadic
#9798EC #EC9798 #98EC97
tetradic
#9798EC #EC97C2 #ECEB97 #97ECC0
square
#9798EC #EC97C2 #ECEB97 #97ECC0
split-complementary
#9798EC #ECC097 #C2EC97
monochromatic
#3032D9 #6365E3 #9798EC #CBCBF5 #E5E5FA

Accessibility & contrast

On white

2.62
#9798EC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.02
#9798EC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9798EC
8.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9798EC#FFFFFF#000000##000000
##9798EC1.002.628.028.02
#FFFFFF2.621.0021.0021.00
#0000008.0221.001.001.00
##0000008.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#7DA3EF
Deuteranopia (green-blind)
#799DEA
Tritanopia (blue-blind)
#80A8B7
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #9798ec;
/* rgb */ color: rgb(151, 152, 236);
/* oklch */ color: oklch(71.3% 0.122 282.3);
Tailwind
colors: {
  custom: {
    50: '#b8b6f2',
    500: '#9798ec',
    950: '#000000',
  },
}
SCSS
$custom: #9798ec;
$custom-light: #b8b6f2;
$custom-dark: #000000;
JSON
{
  "hex": "#9798ec",
  "rgb": {
    "r": 151,
    "g": 152,
    "b": 236
  },
  "hsl": {
    "h": 239.294,
    "s": 69.106,
    "l": 75.882
  },
  "oklch": {
    "l": 0.71268,
    "c": 0.12152,
    "h": 282.3
  },
  "luminance": 0.35092
}

Semantic roles & 50–950 ramp

primary
#9798EC
secondary
#F2F2D9
accent
#CF14D1
background
#FBFBFE
surface
#F6F6FD
border
#D0D0D5
text
#121117
muted
#818085

Preview Lab

Preview with #9798EC

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

Preview Lab → · Contrast checker → · Palette generator →

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