#797AFC#797AFC

#797AFC is a light, vivid blue. Relative luminance 0.250; OKLCH L 64.4% C 0.189 H 279.4°. Best body text is #000000 at 6.00:1 contrast (WCAG AA passes).

Color values

HEX#797AFC
RGBrgb(121, 122, 252)
HSLhsl(240, 96%, 73%)
HSVhsv(240, 52%, 99%)
CMYKcmyk(52%, 51.6%, 0%, 1.2%)
CIE-LABlab(57.09, 34.29, -65.23)
CIE-LCHlch(57.09, 73.70, 297.73°)
OKLaboklab(64.36% 0.0307 -0.1863)
OKLCHoklch(64.36% 0.189 279.4)
XYZxyz(32.4099, 25.0103, 95.1963)
Luminance0.2501 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797AFC #FCFB79
analogous
#79BBFC #797AFC #B979FC
triadic
#797AFC #FC797A #7AFC79
tetradic
#797AFC #FC79BB #FCFB79 #79FCB9
square
#797AFC #FC79BB #FCFB79 #79FCB9
split-complementary
#797AFC #FCB979 #BBFC79
monochromatic
#0507F5 #3D3FFB #797AFC #B5B5FD #E1E1FE

Accessibility & contrast

On white

3.50
#797AFC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.00
#797AFC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797AFC
6.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797AFC#FFFFFF#000000##000000
##797AFC1.003.506.006.00
#FFFFFF3.501.0021.0021.00
#0000006.0021.001.001.00
##0000006.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#348EFF
Deuteranopia (green-blind)
#2284F9
Tritanopia (blue-blind)
#4097AF
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #797afc;
/* rgb */ color: rgb(121, 122, 252);
/* oklch */ color: oklch(64.4% 0.189 279.4);
Tailwind
colors: {
  custom: {
    50: '#a8a0fe',
    500: '#797afc',
    950: '#000000',
  },
}
SCSS
$custom: #797afc;
$custom-light: #a8a0fe;
$custom-dark: #000000;
JSON
{
  "hex": "#797afc",
  "rgb": {
    "r": 121,
    "g": 122,
    "b": 252
  },
  "hsl": {
    "h": 239.542,
    "s": 95.62,
    "l": 73.137
  },
  "oklch": {
    "l": 0.64363,
    "c": 0.18882,
    "h": 279.4
  },
  "luminance": 0.25012
}

Semantic roles & 50–950 ramp

primary
#797AFC
secondary
#F7F6D4
accent
#E400E6
background
#FAF9FF
surface
#F5F2FF
border
#CFCCD7
text
#110E18
muted
#807E86

Preview Lab

Preview with #797AFC

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

Preview Lab → · Contrast checker → · Palette generator →

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