#797BF7#797BF7

#797BF7 is a light, vivid blue. Relative luminance 0.249; OKLCH L 64.2% C 0.181 H 279.3°. Best body text is #000000 at 5.99:1 contrast (WCAG AA passes).

Color values

HEX#797BF7
RGBrgb(121, 123, 247)
HSLhsl(239, 89%, 72%)
HSVhsv(239, 51%, 97%)
CMYKcmyk(51%, 50.2%, 0%, 3.1%)
CIE-LABlab(57.02, 32.19, -62.57)
CIE-LCHlch(57.02, 70.37, 297.22°)
OKLaboklab(64.22% 0.0293 -0.1785)
OKLCHoklch(64.22% 0.181 279.3)
XYZxyz(31.7514, 24.9444, 91.1193)
Luminance0.2495 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797BF7 #F7F579
analogous
#79BAF7 #797BF7 #B679F7
triadic
#797BF7 #F7797B #7BF779
tetradic
#797BF7 #F779BA #F7F579 #79F7B6
square
#797BF7 #F779BA #F7F579 #79F7B6
split-complementary
#797BF7 #F7B679 #BAF779
monochromatic
#0E11E8 #3F42F4 #797BF7 #B3B4FA #E2E3FD

Accessibility & contrast

On white

3.51
#797BF7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.99
#797BF7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797BF7
5.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797BF7#FFFFFF#000000##000000
##797BF71.003.515.995.99
#FFFFFF3.511.0021.0021.00
#0000005.9921.001.001.00
##0000005.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#3D8EFB
Deuteranopia (green-blind)
#2F84F4
Tritanopia (blue-blind)
#4496AD
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #797bf7;
/* rgb */ color: rgb(121, 123, 247);
/* oklch */ color: oklch(64.2% 0.181 279.3);
Tailwind
colors: {
  custom: {
    50: '#a8a1fa',
    500: '#797bf7',
    950: '#000000',
  },
}
SCSS
$custom: #797bf7;
$custom-light: #a8a1fa;
$custom-dark: #000000;
JSON
{
  "hex": "#797bf7",
  "rgb": {
    "r": 121,
    "g": 123,
    "b": 247
  },
  "hsl": {
    "h": 239.048,
    "s": 88.732,
    "l": 72.157
  },
  "oklch": {
    "l": 0.64217,
    "c": 0.18086,
    "h": 279.3
  },
  "luminance": 0.24946
}

Semantic roles & 50–950 ramp

primary
#797BF7
secondary
#F5F5D6
accent
#E200E5
background
#FAF9FF
surface
#F4F2FF
border
#CECCD7
text
#100F17
muted
#7F7E85

Preview Lab

Preview with #797BF7

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

Preview Lab → · Contrast checker → · Palette generator →

#797BF7 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva