#797BF0#797BF0

#797BF0 is a light, vivid blue. Relative luminance 0.245; OKLCH L 63.8% C 0.171 H 279.6°. Best body text is #000000 at 5.90:1 contrast (WCAG AA passes).

Color values

HEX#797BF0
RGBrgb(121, 123, 240)
HSLhsl(239, 80%, 71%)
HSVhsv(239, 50%, 94%)
CMYKcmyk(49.6%, 48.7%, 0%, 5.9%)
CIE-LABlab(56.61, 30.08, -59.36)
CIE-LCHlch(56.61, 66.54, 296.87°)
OKLaboklab(63.77% 0.0287 -0.169)
OKLCHoklch(63.77% 0.171 279.6)
XYZxyz(30.6915, 24.5204, 85.5369)
Luminance0.2452 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797BF0 #F0EE79
analogous
#79B6F0 #797BF0 #B279F0
triadic
#797BF0 #F0797B #7BF079
tetradic
#797BF0 #F079B6 #F0EE79 #79F0B2
square
#797BF0 #F079B6 #F0EE79 #79F0B2
split-complementary
#797BF0 #F0B279 #B6F079
monochromatic
#181BD7 #4245EA #797BF0 #B0B1F6 #E3E4FC

Accessibility & contrast

On white

3.56
#797BF0 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.90
#797BF0 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797BF0
5.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797BF0#FFFFFF#000000##000000
##797BF01.003.565.905.90
#FFFFFF3.561.0021.0021.00
#0000005.9021.001.001.00
##0000005.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#458CF4
Deuteranopia (green-blind)
#3A83ED
Tritanopia (blue-blind)
#4A94AA
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #797bf0;
/* rgb */ color: rgb(121, 123, 240);
/* oklch */ color: oklch(63.8% 0.171 279.6);
Tailwind
colors: {
  custom: {
    50: '#a7a1f5',
    500: '#797bf0',
    950: '#000000',
  },
}
SCSS
$custom: #797bf0;
$custom-light: #a7a1f5;
$custom-dark: #000000;
JSON
{
  "hex": "#797bf0",
  "rgb": {
    "r": 121,
    "g": 123,
    "b": 240
  },
  "hsl": {
    "h": 238.992,
    "s": 79.866,
    "l": 70.784
  },
  "oklch": {
    "l": 0.6377,
    "c": 0.17145,
    "h": 279.6
  },
  "luminance": 0.24522
}

Semantic roles & 50–950 ramp

primary
#797BF0
secondary
#F2F2D2
accent
#D909DC
background
#FAF9FF
surface
#F4F2FE
border
#CECCD6
text
#100E17
muted
#7F7E85

Preview Lab

Preview with #797BF0

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

Preview Lab → · Contrast checker → · Palette generator →

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