#9798CD#9798CD

#9798CD is a light, moderate blue. Relative luminance 0.334; OKLCH L 69.8% C 0.077 H 283.4°. Best body text is #000000 at 7.69:1 contrast (WCAG AA passes).

Color values

HEX#9798CD
RGBrgb(151, 152, 205)
HSLhsl(239, 35%, 70%)
HSVhsv(239, 26%, 80%)
CMYKcmyk(26.3%, 25.9%, 0%, 19.6%)
CIE-LABlab(64.52, 11.35, -27.26)
CIE-LCHlch(64.52, 29.53, 292.60°)
OKLaboklab(69.84% 0.0179 -0.0752)
OKLCHoklch(69.84% 0.077 283.4)
XYZxyz(35.0074, 33.4428, 62.3565)
Luminance0.3344 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9798CD #CDCC97
analogous
#97B3CD #9798CD #B197CD
triadic
#9798CD #CD9798 #98CD97
tetradic
#9798CD #CD97B3 #CDCC97 #97CDB1
square
#9798CD #CD97B3 #CDCC97 #97CDB1
split-complementary
#9798CD #CDB197 #B3CD97
monochromatic
#4C4D9E #6E6FB9 #9798CD #C0C1E1 #EAEAF5

Accessibility & contrast

On white

2.73
#9798CD on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.69
#9798CD on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9798CD
7.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9798CD#FFFFFF#000000##000000
##9798CD1.002.737.697.69
#FFFFFF2.731.0021.0021.00
#0000007.6921.001.001.00
##0000007.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A9ECF
Deuteranopia (green-blind)
#889BCC
Tritanopia (blue-blind)
#8AA1AA
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #9798cd;
/* rgb */ color: rgb(151, 152, 205);
/* oklch */ color: oklch(69.8% 0.077 283.4);
Tailwind
colors: {
  custom: {
    50: '#b6b6dc',
    500: '#9798cd',
    950: '#000000',
  },
}
SCSS
$custom: #9798cd;
$custom-light: #b6b6dc;
$custom-dark: #000000;
JSON
{
  "hex": "#9798cd",
  "rgb": {
    "r": 151,
    "g": 152,
    "b": 205
  },
  "hsl": {
    "h": 238.889,
    "s": 35.065,
    "l": 69.804
  },
  "oklch": {
    "l": 0.69836,
    "c": 0.07731,
    "h": 283.4
  },
  "luminance": 0.33444
}

Semantic roles & 50–950 ramp

primary
#9798CD
secondary
#E8E7D8
accent
#AC38AE
background
#FBFBFD
surface
#F6F6FB
border
#D0D0D4
text
#111115
muted
#808083

Preview Lab

Preview with #9798CD

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

Preview Lab → · Contrast checker → · Palette generator →

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