#9799EC#9799EC

#9799EC is a light, vivid blue. Relative luminance 0.354; OKLCH L 71.5% C 0.120 H 281.9°. Best body text is #000000 at 8.08:1 contrast (WCAG AA passes).

Color values

HEX#9799EC
RGBrgb(151, 153, 236)
HSLhsl(239, 69%, 76%)
HSVhsv(239, 36%, 93%)
CMYKcmyk(36%, 35.2%, 0%, 7.5%)
CIE-LABlab(66.07, 18.71, -42.00)
CIE-LCHlch(66.07, 45.98, 294.01°)
OKLaboklab(71.46% 0.0247 -0.1176)
OKLCHoklch(71.46% 0.12 281.9)
XYZxyz(39.2898, 35.4165, 84.1066)
Luminance0.3542 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9799EC #ECEA97
analogous
#97C3EC #9799EC #BF97EC
triadic
#9799EC #EC9799 #99EC97
tetradic
#9799EC #EC97C3 #ECEA97 #97ECBF
square
#9799EC #EC97C3 #ECEA97 #97ECBF
split-complementary
#9799EC #ECBF97 #C3EC97
monochromatic
#3033D9 #6366E3 #9799EC #CBCCF5 #E5E6FA

Accessibility & contrast

On white

2.60
#9799EC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.08
#9799EC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9799EC
8.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9799EC#FFFFFF#000000##000000
##9799EC1.002.608.088.08
#FFFFFF2.601.0021.0021.00
#0000008.0821.001.001.00
##0000008.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#7FA4EF
Deuteranopia (green-blind)
#7B9EEA
Tritanopia (blue-blind)
#80A9B8
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #9799ec;
/* rgb */ color: rgb(151, 153, 236);
/* oklch */ color: oklch(71.5% 0.120 281.9);
Tailwind
colors: {
  custom: {
    50: '#b8b7f2',
    500: '#9799ec',
    950: '#000000',
  },
}
SCSS
$custom: #9799ec;
$custom-light: #b8b7f2;
$custom-dark: #000000;
JSON
{
  "hex": "#9799ec",
  "rgb": {
    "r": 151,
    "g": 153,
    "b": 236
  },
  "hsl": {
    "h": 238.588,
    "s": 69.106,
    "l": 75.882
  },
  "oklch": {
    "l": 0.71461,
    "c": 0.12012,
    "h": 281.9
  },
  "luminance": 0.35418
}

Semantic roles & 50–950 ramp

primary
#9799EC
secondary
#F2F1D9
accent
#CD14D1
background
#FBFBFE
surface
#F6F6FD
border
#D0D0D5
text
#121117
muted
#818085

Preview Lab

Preview with #9799EC

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

Preview Lab → · Contrast checker → · Palette generator →

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