#797DFB#797DFB

#797DFB is a light, vivid blue. Relative luminance 0.257; OKLCH L 64.8% C 0.184 H 278.6°. Best body text is #000000 at 6.14:1 contrast (WCAG AA passes).

Color values

HEX#797DFB
RGBrgb(121, 125, 251)
HSLhsl(238, 94%, 73%)
HSVhsv(238, 52%, 98%)
CMYKcmyk(51.8%, 50.2%, 0%, 1.6%)
CIE-LABlab(57.75, 32.22, -63.62)
CIE-LCHlch(57.75, 71.31, 296.86°)
OKLaboklab(64.84% 0.0274 -0.1815)
OKLCHoklch(64.84% 0.184 278.6)
XYZxyz(32.6259, 25.6952, 94.4886)
Luminance0.2570 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797DFB #FBF779
analogous
#79BEFB #797DFB #B679FB
triadic
#797DFB #FB797D #7DFB79
tetradic
#797DFB #FB79BE #FBF779 #79FBB6
square
#797DFB #FB79BE #FBF779 #79FBB6
split-complementary
#797DFB #FBB679 #BEFB79
monochromatic
#070EF2 #3E43F9 #797DFB #B4B7FD #E1E2FE

Accessibility & contrast

On white

3.42
#797DFB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.14
#797DFB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797DFB
6.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797DFB#FFFFFF#000000##000000
##797DFB1.003.426.146.14
#FFFFFF3.421.0021.0021.00
#0000006.1421.001.001.00
##0000006.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#3D90FF
Deuteranopia (green-blind)
#2E86F8
Tritanopia (blue-blind)
#4099B0
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #797dfb;
/* rgb */ color: rgb(121, 125, 251);
/* oklch */ color: oklch(64.8% 0.184 278.6);
Tailwind
colors: {
  custom: {
    50: '#a8a2fd',
    500: '#797dfb',
    950: '#000000',
  },
}
SCSS
$custom: #797dfb;
$custom-light: #a8a2fd;
$custom-dark: #000000;
JSON
{
  "hex": "#797dfb",
  "rgb": {
    "r": 121,
    "g": 125,
    "b": 251
  },
  "hsl": {
    "h": 238.154,
    "s": 94.203,
    "l": 72.941
  },
  "oklch": {
    "l": 0.6484,
    "c": 0.18359,
    "h": 278.6
  },
  "luminance": 0.25697
}

Semantic roles & 50–950 ramp

primary
#797DFB
secondary
#F6F5D5
accent
#DE00E6
background
#FAFAFF
surface
#F4F3FF
border
#CECDD7
text
#100F18
muted
#7F7F86

Preview Lab

Preview with #797DFB

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

Preview Lab → · Contrast checker → · Palette generator →

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