#9799F2#9799F2

#9799F2 is a light, vivid blue. Relative luminance 0.358; OKLCH L 71.8% C 0.129 H 281.7°. Best body text is #000000 at 8.15:1 contrast (WCAG AA passes).

Color values

HEX#9799F2
RGBrgb(151, 153, 242)
HSLhsl(239, 78%, 77%)
HSVhsv(239, 38%, 95%)
CMYKcmyk(37.6%, 36.8%, 0%, 5.1%)
CIE-LABlab(66.34, 20.31, -44.87)
CIE-LCHlch(66.34, 49.25, 294.35°)
OKLaboklab(71.76% 0.026 -0.1259)
OKLCHoklch(71.76% 0.129 281.7)
XYZxyz(40.1762, 35.7711, 88.7748)
Luminance0.3577 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9799F2 #F2F097
analogous
#97C7F2 #9799F2 #C297F2
triadic
#9799F2 #F29799 #99F297
tetradic
#9799F2 #F297C7 #F2F097 #97F2C2
square
#9799F2 #F297C7 #F2F097 #97F2C2
split-complementary
#9799F2 #F2C297 #C7F297
monochromatic
#2A2EE4 #6164EB #9799F2 #CDCEF9 #E4E4FC

Accessibility & contrast

On white

2.58
#9799F2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.15
#9799F2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9799F2
8.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9799F2#FFFFFF#000000##000000
##9799F21.002.588.158.15
#FFFFFF2.581.0021.0021.00
#0000008.1521.001.001.00
##0000008.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#7CA5F6
Deuteranopia (green-blind)
#779EF0
Tritanopia (blue-blind)
#7DAABA
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #9799f2;
/* rgb */ color: rgb(151, 153, 242);
/* oklch */ color: oklch(71.8% 0.129 281.7);
Tailwind
colors: {
  custom: {
    50: '#b9b7f6',
    500: '#9799f2',
    950: '#000000',
  },
}
SCSS
$custom: #9799f2;
$custom-light: #b9b7f6;
$custom-dark: #000000;
JSON
{
  "hex": "#9799f2",
  "rgb": {
    "r": 151,
    "g": 153,
    "b": 242
  },
  "hsl": {
    "h": 238.681,
    "s": 77.778,
    "l": 77.059
  },
  "oklch": {
    "l": 0.7176,
    "c": 0.12852,
    "h": 281.7
  },
  "luminance": 0.35773
}

Semantic roles & 50–950 ramp

primary
#9799F2
secondary
#F3F3D8
accent
#D50BDA
background
#FBFBFF
surface
#F6F6FE
border
#D0D0D6
text
#121117
muted
#818085

Preview Lab

Preview with #9799F2

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

Preview Lab → · Contrast checker → · Palette generator →

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