#9798EA#9798EA

#9798EA is a light, moderate blue. Relative luminance 0.350; OKLCH L 71.2% C 0.119 H 282.4°. Best body text is #000000 at 8.00:1 contrast (WCAG AA passes).

Color values

HEX#9798EA
RGBrgb(151, 152, 234)
HSLhsl(239, 66%, 75%)
HSVhsv(239, 35%, 92%)
CMYKcmyk(35.5%, 35%, 0%, 8.2%)
CIE-LABlab(65.73, 18.75, -41.44)
CIE-LCHlch(65.73, 45.49, 294.34°)
OKLaboklab(71.17% 0.0255 -0.1159)
OKLCHoklch(71.17% 0.119 282.4)
XYZxyz(38.8379, 34.9750, 82.5305)
Luminance0.3498 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9798EA #EAE997
analogous
#97C1EA #9798EA #BF97EA
triadic
#9798EA #EA9798 #98EA97
tetradic
#9798EA #EA97C1 #EAE997 #97EABF
square
#9798EA #EA97C1 #EAE997 #97EABF
split-complementary
#9798EA #EABF97 #C1EA97
monochromatic
#3133D5 #6466E0 #9798EA #CACAF4 #E6E6FA

Accessibility & contrast

On white

2.63
#9798EA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.00
#9798EA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9798EA
8.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9798EA#FFFFFF#000000##000000
##9798EA1.002.638.008.00
#FFFFFF2.631.0021.0021.00
#0000008.0021.001.001.00
##0000008.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#7EA3ED
Deuteranopia (green-blind)
#7A9DE8
Tritanopia (blue-blind)
#80A8B6
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #9798ea;
/* rgb */ color: rgb(151, 152, 234);
/* oklch */ color: oklch(71.2% 0.119 282.4);
Tailwind
colors: {
  custom: {
    50: '#b8b6f1',
    500: '#9798ea',
    950: '#000000',
  },
}
SCSS
$custom: #9798ea;
$custom-light: #b8b6f1;
$custom-dark: #000000;
JSON
{
  "hex": "#9798ea",
  "rgb": {
    "r": 151,
    "g": 152,
    "b": 234
  },
  "hsl": {
    "h": 239.277,
    "s": 66.4,
    "l": 75.49
  },
  "oklch": {
    "l": 0.71169,
    "c": 0.11871,
    "h": 282.4
  },
  "luminance": 0.34976
}

Semantic roles & 50–950 ramp

primary
#9798EA
secondary
#F1F1DA
accent
#CC17CE
background
#FBFBFE
surface
#F6F6FD
border
#D0D0D5
text
#121116
muted
#818084

Preview Lab

Preview with #9798EA

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

Preview Lab → · Contrast checker → · Palette generator →

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