#797CFC#797CFC

#797CFC is a light, vivid blue. Relative luminance 0.255; OKLCH L 64.7% C 0.186 H 278.8°. Best body text is #000000 at 6.10:1 contrast (WCAG AA passes).

Color values

HEX#797CFC
RGBrgb(121, 124, 252)
HSLhsl(239, 96%, 73%)
HSVhsv(239, 52%, 99%)
CMYKcmyk(52%, 50.8%, 0%, 1.2%)
CIE-LABlab(57.57, 33.11, -64.46)
CIE-LCHlch(57.57, 72.47, 297.19°)
OKLaboklab(64.72% 0.0286 -0.184)
OKLCHoklch(64.72% 0.186 278.8)
XYZxyz(32.6580, 25.5065, 95.2790)
Luminance0.2551 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797CFC #FCF979
analogous
#79BDFC #797CFC #B779FC
triadic
#797CFC #FC797C #7CFC79
tetradic
#797CFC #FC79BD #FCF979 #79FCB7
square
#797CFC #FC79BD #FCF979 #79FCB7
split-complementary
#797CFC #FCB779 #BDFC79
monochromatic
#050BF5 #3D41FB #797CFC #B5B7FD #E1E2FE

Accessibility & contrast

On white

3.44
#797CFC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.10
#797CFC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797CFC
6.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797CFC#FFFFFF#000000##000000
##797CFC1.003.446.106.10
#FFFFFF3.441.0021.0021.00
#0000006.1021.001.001.00
##0000006.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#3A90FF
Deuteranopia (green-blind)
#2985F9
Tritanopia (blue-blind)
#4099B0
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #797cfc;
/* rgb */ color: rgb(121, 124, 252);
/* oklch */ color: oklch(64.7% 0.186 278.8);
Tailwind
colors: {
  custom: {
    50: '#a8a2fe',
    500: '#797cfc',
    950: '#000000',
  },
}
SCSS
$custom: #797cfc;
$custom-light: #a8a2fe;
$custom-dark: #000000;
JSON
{
  "hex": "#797cfc",
  "rgb": {
    "r": 121,
    "g": 124,
    "b": 252
  },
  "hsl": {
    "h": 238.626,
    "s": 95.62,
    "l": 73.137
  },
  "oklch": {
    "l": 0.64723,
    "c": 0.18622,
    "h": 278.8
  },
  "luminance": 0.25509
}

Semantic roles & 50–950 ramp

primary
#797CFC
secondary
#F7F6D4
accent
#E000E6
background
#FAF9FF
surface
#F5F2FF
border
#CFCCD7
text
#110F18
muted
#807E86

Preview Lab

Preview with #797CFC

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

Preview Lab → · Contrast checker → · Palette generator →

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