#797BF3#797BF3

#797BF3 is a light, vivid blue. Relative luminance 0.247; OKLCH L 64.0% C 0.175 H 279.5°. Best body text is #000000 at 5.94:1 contrast (WCAG AA passes).

Color values

HEX#797BF3
RGBrgb(121, 123, 243)
HSLhsl(239, 84%, 71%)
HSVhsv(239, 50%, 95%)
CMYKcmyk(50.2%, 49.4%, 0%, 4.7%)
CIE-LABlab(56.78, 30.98, -60.74)
CIE-LCHlch(56.78, 68.19, 297.02°)
OKLaboklab(63.96% 0.0289 -0.1731)
OKLCHoklch(63.96% 0.176 279.5)
XYZxyz(31.1408, 24.7001, 87.9033)
Luminance0.2470 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797BF3 #F3F179
analogous
#79B8F3 #797BF3 #B479F3
triadic
#797BF3 #F3797B #7BF379
tetradic
#797BF3 #F379B8 #F3F179 #79F3B4
square
#797BF3 #F379B8 #F3F179 #79F3B4
split-complementary
#797BF3 #F3B479 #B8F379
monochromatic
#1417DE #4144EE #797BF3 #B1B2F8 #E3E3FC

Accessibility & contrast

On white

3.54
#797BF3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.94
#797BF3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797BF3
5.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797BF3#FFFFFF#000000##000000
##797BF31.003.545.945.94
#FFFFFF3.541.0021.0021.00
#0000005.9421.001.001.00
##0000005.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#428DF7
Deuteranopia (green-blind)
#3684F0
Tritanopia (blue-blind)
#4895AC
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #797bf3;
/* rgb */ color: rgb(121, 123, 243);
/* oklch */ color: oklch(64.0% 0.175 279.5);
Tailwind
colors: {
  custom: {
    50: '#a7a1f8',
    500: '#797bf3',
    950: '#000000',
  },
}
SCSS
$custom: #797bf3;
$custom-light: #a7a1f8;
$custom-dark: #000000;
JSON
{
  "hex": "#797bf3",
  "rgb": {
    "r": 121,
    "g": 123,
    "b": 243
  },
  "hsl": {
    "h": 239.016,
    "s": 83.562,
    "l": 71.373
  },
  "oklch": {
    "l": 0.63961,
    "c": 0.1755,
    "h": 279.5
  },
  "luminance": 0.24702
}

Semantic roles & 50–950 ramp

primary
#797BF3
secondary
#F4F3D4
accent
#DC06E0
background
#FAF9FF
surface
#F4F2FF
border
#CECCD7
text
#100F17
muted
#7F7E85

Preview Lab

Preview with #797BF3

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

Preview Lab → · Contrast checker → · Palette generator →

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