#797DFC#797DFC

#797DFC is a light, vivid blue. Relative luminance 0.258; OKLCH L 64.9% C 0.185 H 278.6°. Best body text is #000000 at 6.15:1 contrast (WCAG AA passes).

Color values

HEX#797DFC
RGBrgb(121, 125, 252)
HSLhsl(238, 96%, 73%)
HSVhsv(238, 52%, 99%)
CMYKcmyk(52%, 50.4%, 0%, 1.2%)
CIE-LABlab(57.81, 32.52, -64.07)
CIE-LCHlch(57.81, 71.85, 296.91°)
OKLaboklab(64.91% 0.0275 -0.1829)
OKLCHoklch(64.91% 0.185 278.6)
XYZxyz(32.7840, 25.7584, 95.3209)
Luminance0.2576 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797DFC #FCF879
analogous
#79BEFC #797DFC #B679FC
triadic
#797DFC #FC797D #7DFC79
tetradic
#797DFC #FC79BE #FCF879 #79FCB6
square
#797DFC #FC79BE #FCF879 #79FCB6
split-complementary
#797DFC #FCB679 #BEFC79
monochromatic
#050DF5 #3D43FB #797DFC #B5B7FD #E1E2FE

Accessibility & contrast

On white

3.41
#797DFC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.15
#797DFC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797DFC
6.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797DFC#FFFFFF#000000##000000
##797DFC1.003.416.156.15
#FFFFFF3.411.0021.0021.00
#0000006.1521.001.001.00
##0000006.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#3C90FF
Deuteranopia (green-blind)
#2C86F9
Tritanopia (blue-blind)
#3F99B1
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #797dfc;
/* rgb */ color: rgb(121, 125, 252);
/* oklch */ color: oklch(64.9% 0.185 278.6);
Tailwind
colors: {
  custom: {
    50: '#a8a2fe',
    500: '#797dfc',
    950: '#000000',
  },
}
SCSS
$custom: #797dfc;
$custom-light: #a8a2fe;
$custom-dark: #000000;
JSON
{
  "hex": "#797dfc",
  "rgb": {
    "r": 121,
    "g": 125,
    "b": 252
  },
  "hsl": {
    "h": 238.168,
    "s": 95.62,
    "l": 73.137
  },
  "oklch": {
    "l": 0.64905,
    "c": 0.18493,
    "h": 278.6
  },
  "luminance": 0.2576
}

Semantic roles & 50–950 ramp

primary
#797DFC
secondary
#F7F6D4
accent
#DE00E6
background
#FAFAFF
surface
#F5F3FF
border
#CFCDD7
text
#100F18
muted
#7F7F86

Preview Lab

Preview with #797DFC

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

Preview Lab → · Contrast checker → · Palette generator →

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